QTfrontend/net/tcpBase.cpp
changeset 13518 4c5c8a83e298
parent 13505 d9f9e66543d7
child 14620 b86e6e4f3c58
--- 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)