From: michael Date: Sat, 1 Jul 2006 18:44:49 +0000 (+0000) Subject: forgot a continue X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/commitdiff_plain/b973e875ef2e7f45e9eee04c04805fc817f0ff05 forgot a continue --- diff --git a/record-dvb.c b/record-dvb.c index b27ce74..a289874 100644 --- a/record-dvb.c +++ b/record-dvb.c @@ -40,8 +40,10 @@ void record(int(*open_fn)(char *), char *url, char *outfile, int duration) do { if ((bytes = recv(in, buffer, CHUNKSIZE, 0)) < 1) { /* TODO: Insert better connection-loss recovery here */ - if ((in = (*open_fn)(url)) < 0) + if ((in = (*open_fn)(url)) < 0) { sleep(1); + continue; + } } written = 0; do {