Index: libs/libmyth/mythcontext.cpp
===================================================================
--- libs/libmyth/mythcontext.cpp	(revision 23032)
+++ libs/libmyth/mythcontext.cpp	(working copy)
@@ -2163,13 +2163,30 @@
 
 void MythContext::readyRead(MythSocket *sock)
 {
-    (void)sock;
-
-    while (d->eventSock->state() == MythSocket::Connected &&
-           d->eventSock->bytesAvailable() > 0)
+#if 1 // remove after bug fix for #7819 is finalized
+    if (!sock) {
+       VERBOSE(VB_IMPORTANT, QString("readyRead: sock is NULL"));
+       sock=d->eventSock;
+       if (!sock) {
+          VERBOSE(VB_IMPORTANT, QString("readyRead: d->eventSock is also NULL"));
+          return;
+          }
+       }
+    else if (sock != d->eventSock) {
+       if (d->eventSock) {
+          VERBOSE(VB_IMPORTANT, QString("readyRead: we got a socket that is not d->eventSock"));
+          }
+       else {
+          VERBOSE(VB_IMPORTANT, QString("readyRead: called with a socket and d->eventSock is NULL"));
+          }
+       }
+#endif
+       
+    while (sock->state() == MythSocket::Connected &&
+           sock->bytesAvailable() > 0)
     {
         QStringList strlist;
-        if (!d->eventSock->readStringList(strlist))
+        if (!sock->readStringList(strlist))
             continue;
 
         QString prefix = strlist[0];
