summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/svdrp.c b/svdrp.c
index df4ffac..a626fda 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.18 2001/04/01 16:06:54 kls Exp $
+ * $Id: svdrp.c 1.20 2001/07/22 13:58:48 kls Exp $
*/
#define _GNU_SOURCE
@@ -941,7 +941,7 @@ void cSVDRP::Process(void)
if (numChars > 0)
numChars--;
}
- else if (c <= 0x03 || c == 0x0D || 0xF0 <= c) {
+ else if (c <= 0x03 || c == 0x0D) {
// ignore control characters
}
else if (numChars < sizeof(cmdLine) - 1) {
@@ -955,8 +955,10 @@ void cSVDRP::Process(void)
}
lastActivity = time(NULL);
}
- else if (r < 0)
+ else if (r <= 0) {
+ isyslog(LOG_INFO, "lost connection to SVDRP client");
Close();
+ }
}
else if (Setup.SVDRPTimeout && time(NULL) - lastActivity > Setup.SVDRPTimeout) {
isyslog(LOG_INFO, "timeout on SVDRP connection");