Unregister server in servers list when the game is started
authorunc0rr
Fri, 14 Dec 2007 16:18:42 +0000
changeset 661 0523b15353a2
parent 660 7c155e849602
child 662 b2f914786d87
Unregister server in servers list when the game is started
QTfrontend/hwform.cpp
QTfrontend/netwwwserver.cpp
--- a/QTfrontend/hwform.cpp	Fri Dec 14 16:13:35 2007 +0000
+++ b/QTfrontend/hwform.cpp	Fri Dec 14 16:18:42 2007 +0000
@@ -498,6 +498,11 @@
 	switch(gameState) {
 		case gsStarted: {
 			ui.pageGameStats->labelGameStats->setText("");
+			if (pRegisterServer)
+			{
+				pRegisterServer->unregister();
+				pRegisterServer = 0;
+			}
 			break;
 		}
 		case gsFinished: {
--- a/QTfrontend/netwwwserver.cpp	Fri Dec 14 16:13:35 2007 +0000
+++ b/QTfrontend/netwwwserver.cpp	Fri Dec 14 16:18:42 2007 +0000
@@ -86,7 +86,6 @@
 
 void HWNetWwwServer::unregister()
 {
-	qDebug("delete server");
 	QString request = QString("id=%1&key=%2")
 			.arg(servid)
 			.arg(servkey);