Fixed server termination issue.

This commit is contained in:
lotodore
2007-10-02 18:58:54 +00:00
parent 73c90d4106
commit 351d32659f
3 changed files with 14 additions and 7 deletions
+2 -1
View File
@@ -93,7 +93,8 @@ main(int argc, char *argv[])
myServerGuiInterface->getSession().startNetworkServer();
while (!g_pokerthTerminate)
{
myServerGuiInterface->getSession().waitForNetworkServer(100);
if (myServerGuiInterface->getSession().waitForNetworkServer(100))
g_pokerthTerminate = true;
}
myServerGuiInterface->getSession().terminateNetworkServer();