Ticket #6595: 6595-mainserver-qtimer.patch
File 6595-mainserver-qtimer.patch, 1.4 KB (added by , 16 years ago) |
---|
-
programs/mythbackend/mainserver.h
56 56 void deferredDeleteSlot(void); 57 57 void autoexpireUpdate(void); 58 58 59 signals: 60 void masterConnectionLost(void); 61 59 62 private slots: 60 63 void newConnection(MythSocket *); 61 64 -
programs/mythbackend/mainserver.cpp
204 204 masterServerReconnect->setSingleShot(true); 205 205 connect(masterServerReconnect, SIGNAL(timeout()), this, 206 206 SLOT(reconnectTimeout())); 207 connect(this, SIGNAL(masterConnectionLost(void)), this, 208 SLOT(reconnectTimeout())); 207 209 masterServerReconnect->start(1000); 208 210 } 209 211 … … 4262 4264 sockListLock.unlock(); 4263 4265 masterServer->DownRef(); 4264 4266 masterServer = NULL; 4265 masterServerReconnect->start(1000); 4267 // Called from MythSocketThread - cannot start MainServer's timer 4268 // masterServerReconnect->start(1000); 4269 emit masterConnectionLost(); 4266 4270 return; 4267 4271 } 4268 4272 else if (sock == socket)