From a8a2884e8940cb22ef2ac1059e0597aaf256fcb7 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 1 Jul 2006 17:05:25 +0000 Subject: [PATCH] 'connection-loss recovery' --- record-dvb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5