QTfrontend/hwform.cpp
changeset 6225 505643d4c23d
parent 6223 cc3eb9b7230f
child 6227 ce60b734fff1
--- a/QTfrontend/hwform.cpp	Fri Oct 28 19:20:35 2011 +0400
+++ b/QTfrontend/hwform.cpp	Sat Oct 29 09:19:04 2011 +0200
@@ -997,6 +997,9 @@
         delete pnetserver;
         pnetserver = 0;
     }
+
+    if(hwnet)
+        hwnet->Disconnect();
 }
 
 void HWForm::ForcedDisconnect(const QString & reason)
@@ -1166,7 +1169,7 @@
             ui.pageNetGame->pGameCFG->WeaponsName->currentIndex()
             ).toString();
 
-	CreateGame(ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget, ammo);
+    CreateGame(ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget, ammo);
 
     connect(game, SIGNAL(SendNet(const QByteArray &)), hwnet, SLOT(SendNet(const QByteArray &)));
     connect(game, SIGNAL(SendChat(const QString &)), hwnet, SLOT(chatLineToNet(const QString &)));