some chatcleaner adjustments

This commit is contained in:
doitux
2009-07-27 20:18:18 +00:00
parent e44286044d
commit a612cff91f
4 changed files with 19 additions and 9 deletions
+5 -3
View File
@@ -35,9 +35,11 @@ CleanerServer::~CleanerServer()
}
void CleanerServer::newCon()
{
tcpSocket = tcpServer->nextPendingConnection();
connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(onRead()));
{
if(!tcpSocket->isOpen()) {
tcpSocket = tcpServer->nextPendingConnection();
connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(onRead()));
}
}
void CleanerServer::onRead()