QTfrontend/newnetclient.cpp
changeset 1354 a8dcdeb88a43
parent 1351 aa7aefec5c1b
child 1356 77ab8735401d
--- 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)