From b973e875ef2e7f45e9eee04c04805fc817f0ff05 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 1 Jul 2006 18:44:49 +0000 Subject: [PATCH] forgot a continue --- record-dvb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5