mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed handling client side termination of SVDRP connections
This commit is contained in:
10
svdrp.c
10
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.97 2006/06/11 09:04:36 kls Exp $
|
||||
* $Id: svdrp.c 1.98 2006/07/22 13:59:43 kls Exp $
|
||||
*/
|
||||
|
||||
#include "svdrp.h"
|
||||
@@ -1594,8 +1594,12 @@ bool cSVDRP::Process(void)
|
||||
isyslog("lost connection to SVDRP client");
|
||||
Close();
|
||||
}
|
||||
else
|
||||
break;
|
||||
else {
|
||||
isyslog("SVDRP client closed connection");
|
||||
//TODO give cSVDRP::Close() an extra parameter to avoid this code duplication
|
||||
file.Close();
|
||||
DELETENULL(PUTEhandler);
|
||||
}
|
||||
}
|
||||
if (Setup.SVDRPTimeout && time(NULL) - lastActivity > Setup.SVDRPTimeout) {
|
||||
isyslog("timeout on SVDRP connection");
|
||||
|
||||
Reference in New Issue
Block a user