From 99dad019cc2eeec43380ea2efb925982831c8a66 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 6 May 2019 15:14:04 +0200 Subject: Fixed handling remote timers in case the response to LSTT is '550 No timers defined' --- svdrp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svdrp.c') diff --git a/svdrp.c b/svdrp.c index 823f23e1..861a0835 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 4.38 2018/04/19 09:45:08 kls Exp $ + * $Id: svdrp.c 4.39 2019/05/06 15:11:15 kls Exp $ */ #include "svdrp.h" @@ -508,9 +508,10 @@ bool cSVDRPClient::GetRemoteTimers(cStringList &Response) int Code = SVDRPCode(s); if (Code == 250) strshift(s, 4); + else if (Code == 550) + Response.Clear(); else { - if (Code != 550) - esyslog("ERROR: %s: %s", ServerName(), s); + esyslog("ERROR: %s: %s", ServerName(), s); return false; } } -- cgit v1.2.3