Ticket #3720: 3720-event-socket-v1.patch
File 3720-event-socket-v1.patch, 989 bytes (added by , 16 years ago) |
---|
-
libs/libmyth/mythcontext.cpp
1001 1001 QString server = gContext->GetSetting("MasterServerIP", "localhost"); 1002 1002 int port = gContext->GetNumSetting("MasterServerPort", 6543); 1003 1003 1004 if (!d->eventSock )1004 if (!d->eventSock && !IsMasterBackend()) 1005 1005 d->eventSock = new MythSocket(); 1006 1006 1007 1007 if (!d->serverSock) … … 2708 2708 { 2709 2709 (void)sock; 2710 2710 2711 if (!d->eventSock) 2712 { 2713 VERBOSE(VB_IMPORTANT, "MythContext: " 2714 "Programmer Error: readyRead() called with no eventSock!" 2715 "\n\t\t\tYou should not connect to the master backend " 2716 "from the master backend using an event socket."); 2717 return; 2718 } 2719 2711 2720 while (d->eventSock->state() == MythSocket::Connected && 2712 2721 d->eventSock->bytesAvailable() > 0) 2713 2722 {