unneded variable removed
authordisplacer
Thu, 05 Oct 2006 18:36:04 +0000
changeset 186 7157b34a24d6
parent 185 3b777d7008d9
child 187 96c3154efee5
unneded variable removed
QTfrontend/tcpBase.cpp
QTfrontend/tcpBase.h
--- 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();
 
--- a/QTfrontend/tcpBase.h	Thu Oct 05 18:33:10 2006 +0000
+++ b/QTfrontend/tcpBase.h	Thu Oct 05 18:36:04 2006 +0000
@@ -59,7 +59,6 @@
   virtual void SendToClientFirst();
 
  private:
-  static int isIPCServerStarted;
   static QTcpServer* IPCServer;
 
   bool m_isDemoMode;