QTfrontend/tcpBase.cpp
changeset 186 7157b34a24d6
parent 185 3b777d7008d9
child 197 8a7123b84d1b
--- a/QTfrontend/tcpBase.cpp	Thu Oct 05 18:33:10 2006 +0000
+++ b/QTfrontend/tcpBase.cpp	Thu Oct 05 18:36:04 2006 +0000
@@ -26,14 +26,13 @@
 #include "hwconsts.h"
 
 QList<TCPBase*> srvsList;
-int TCPBase::isIPCServerStarted=0;
 QTcpServer* TCPBase::IPCServer(0);
 
 TCPBase::TCPBase(bool demoMode) :
   m_isDemoMode(demoMode),
   IPCSocket(0)
 {
-  if(!isIPCServerStarted++) {
+  if(!IPCServer) {
     IPCServer = new QTcpServer(this);
     IPCServer->setMaxPendingConnections(1);
     if (!IPCServer->listen(QHostAddress::LocalHost, IPC_PORT)) {
@@ -73,7 +72,6 @@
 void TCPBase::ClientDisconnect()
 {
   IPCSocket->close();
-  //IPCServer->close();
 
   onClientDisconnect();