[Tux4kids-commits] r1121 - tuxmath/branches/lan/server

akash gangil gangil-guest at alioth.debian.org
Tue Jun 30 22:09:57 UTC 2009


Author: gangil-guest
Date: 2009-06-30 22:09:57 +0000 (Tue, 30 Jun 2009)
New Revision: 1121

Modified:
   tuxmath/branches/lan/server/server.c
Log:
Final commit for today

Modified: tuxmath/branches/lan/server/server.c
===================================================================
--- tuxmath/branches/lan/server/server.c	2009-06-30 21:28:54 UTC (rev 1120)
+++ tuxmath/branches/lan/server/server.c	2009-06-30 22:09:57 UTC (rev 1121)
@@ -413,7 +413,7 @@
     }  // end of for() loop - all client sockets checked
     // Make sure all the active sockets reported by SDLNet_CheckSockets()
     // are accounted for:
-    if(actives != msg_found)
+    if(actives == 0)
     {
       printf("Warning: SDLNet_CheckSockets() reported %d active sockets,\n"
              "but only %d messages received.\n", actives, msg_found);
@@ -425,7 +425,7 @@
     
    
       /* Check the client socket set for activity: */
-      actives = SDLNet_CheckSockets(client_set, 0);
+      actives = SDLNet_CheckSockets(client_set, 5000);
       if(actives == 0)
       {
         printf("No clients , All clients have disconnected...=(\n");




More information about the Tux4kids-commits mailing list