From: michael Date: Sat, 1 Jul 2006 17:05:25 +0000 (+0000) Subject: 'connection-loss recovery' X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/commitdiff_plain/a8a2884e8940cb22ef2ac1059e0597aaf256fcb7?ds=inline 'connection-loss recovery' --- diff --git a/record-dvb.c b/record-dvb.c index aa48bb4..b673d83 100644 --- a/record-dvb.c +++ b/record-dvb.c @@ -39,8 +39,8 @@ void record(int(*open_fn)(char *), char *url, char *outfile, int duration) do { if ((bytes = recv(in, buffer, CHUNKSIZE, 0)) < 1) { - perror("recv"); - exit(EXIT_FAILURE); + /* TODO: Insert better connection-loss recovery here */ + in = (*open_fn)(url); } written = 0;