--- a/QTfrontend/net/tcpBase.cpp Thu Jul 19 14:01:57 2018 +0200
+++ b/QTfrontend/net/tcpBase.cpp Thu Jul 19 19:11:39 2018 +0200
@@ -251,9 +251,15 @@
void TCPBase::tcpServerReady()
{
- disconnect(srvsList.first(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady()));
-
- RealStart();
+ if (!srvsList.isEmpty())
+ {
+ disconnect(srvsList.first(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady()));
+ RealStart();
+ }
+ else
+ {
+ qDebug("tcpServerReady() called while srvsList was empty. Not starting TCP server");
+ }
}
void TCPBase::Start(bool couldCancelPreviousRequest)