[mythtv] [PATCH] mythbackend exit in HandleRemoteEncoder
Kevin Kuphal
kuphal at dls.net
Fri Jul 23 02:47:43 EDT 2004
This patch fixes a problem where the QUERY_REMOTEENCODER message to the
backend will cause the backend to exit harshly if the encoder ID is
invalid. With this patch, the backend returns "bad" as it does in the
same situation with QUERY_RECORDER and continues to run.
Kevin
-------------- next part --------------
Index: mythtv/programs/mythbackend/mainserver.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/mainserver.cpp,v
retrieving revision 1.150
diff -n -u -r1.150 mainserver.cpp
--- mythtv/programs/mythbackend/mainserver.cpp 6 Jul 2004 04:44:36 -0000 1.150
+++ mythtv/programs/mythbackend/mainserver.cpp 23 Jul 2004 06:41:56 -0000
@@ -2208,7 +2208,9 @@
if (iter == encoderList->end())
{
VERBOSE(VB_ALL, QString("Unknown encoder: %1").arg(recnum));
- exit(0);
+ QStringList retlist = "bad";
+ SendResponse(pbssock, retlist);
+ return;
}
EncoderLink *enc = iter.data();
More information about the mythtv-dev
mailing list