--- a/QTfrontend/newnetclient.cpp Tue Oct 14 14:35:52 2008 +0000
+++ b/QTfrontend/newnetclient.cpp Wed Oct 15 11:50:16 2008 +0000
@@ -53,8 +53,10 @@
void HWNewNet::Disconnect()
{
- m_game_connected = false;
- NetSocket.disconnectFromHost();
+ if (m_game_connected)
+ RawSendNet(QString("QUIT"));
+ m_game_connected = false;
+ NetSocket.disconnectFromHost();
}
void HWNewNet::CreateRoom(const QString & room)
@@ -158,7 +160,7 @@
{
//emit ChangeInTeams(QStringList());
if(m_game_connected) emit Disconnected();
- m_game_connected=false;
+ m_game_connected = false;
}
void HWNewNet::displayError(QAbstractSocket::SocketError socketError)