fix for server issue under Windows

This commit is contained in:
Volker Fischer 2009-03-28 09:52:36 +00:00
parent 18dbb7e1fd
commit 25a34ae8c0

View File

@ -120,9 +120,11 @@ void CServer::Stop()
const QString strLogStr = CLogTimeDate::toString() + ",, server stopped " const QString strLogStr = CLogTimeDate::toString() + ",, server stopped "
"-------------------------------------"; "-------------------------------------";
#ifndef _WIN32
QTextStream tsConsoloeStream ( stdout ); QTextStream tsConsoloeStream ( stdout );
tsConsoloeStream << strLogStr << endl; // on console tsConsoloeStream << strLogStr << endl; // on console
Logging << strLogStr; // in log file #endif
Logging << strLogStr; // in log file
} }
void CServer::OnNewChannel ( CHostAddress ChanAddr ) void CServer::OnNewChannel ( CHostAddress ChanAddr )
@ -131,9 +133,11 @@ void CServer::OnNewChannel ( CHostAddress ChanAddr )
const QString strLogStr = CLogTimeDate::toString() + ", " + const QString strLogStr = CLogTimeDate::toString() + ", " +
ChanAddr.InetAddr.toString() + ", connected"; ChanAddr.InetAddr.toString() + ", connected";
#ifndef _WIN32
QTextStream tsConsoloeStream ( stdout ); QTextStream tsConsoloeStream ( stdout );
tsConsoloeStream << strLogStr << endl; // on console tsConsoloeStream << strLogStr << endl; // on console
Logging << strLogStr; // in log file #endif
Logging << strLogStr; // in log file
} }
void CServer::OnTimer() void CServer::OnTimer()