]> git.zerfleddert.de Git - record-dvb/commitdiff
forgot a continue
authormichael <michael>
Sat, 1 Jul 2006 18:44:49 +0000 (18:44 +0000)
committermichael <michael>
Sat, 1 Jul 2006 18:44:49 +0000 (18:44 +0000)
record-dvb.c

index b27ce74908192e938cf574bd2bce0c8d6cc211ec..a289874d160ee0c835e9d2aa420b4e8343e44ccc 100644 (file)
@@ -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 */
        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);
                                sleep(1);
+                               continue;
+                       }
                }
                written = 0;
                do {
                }
                written = 0;
                do {
Impressum, Datenschutz