--- 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;