QTfrontend/net/tcpBase.cpp
changeset 13517 4c5c8a83e298
parent 13505 d9f9e66543d7
child 14604 b86e6e4f3c58
equal deleted inserted replaced
13516:b62b14aa88d4 13517:4c5c8a83e298
   249     }
   249     }
   250 }
   250 }
   251 
   251 
   252 void TCPBase::tcpServerReady()
   252 void TCPBase::tcpServerReady()
   253 {
   253 {
   254     disconnect(srvsList.first(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady()));
   254     if (!srvsList.isEmpty())
   255 
   255     {
   256     RealStart();
   256         disconnect(srvsList.first(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady()));
       
   257         RealStart();
       
   258     }
       
   259     else
       
   260     {
       
   261         qDebug("tcpServerReady() called while srvsList was empty. Not starting TCP server");
       
   262     }
   257 }
   263 }
   258 
   264 
   259 void TCPBase::Start(bool couldCancelPreviousRequest)
   265 void TCPBase::Start(bool couldCancelPreviousRequest)
   260 {
   266 {
   261     if(srvsList.isEmpty())
   267     if(srvsList.isEmpty())