[Freeciv-Dev] (PR#17709) handle ggzmod errors
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#17709) handle ggzmod errors |
From: |
"Jason Dorje Short" <jdorje@xxxxxxxxx> |
Date: |
Wed, 7 Jun 2006 13:58:50 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=17709 >
This patch fixes handling when there is a ggzmod error.
For 2.1 and dev versions.
-jason
Index: client/ggzclient.c
===================================================================
--- client/ggzclient.c (revision 12012)
+++ client/ggzclient.c (working copy)
@@ -85,7 +85,9 @@
****************************************************************************/
void input_from_ggz(int socket)
{
- ggzmod_dispatch(ggzmod);
+ if (ggzmod_dispatch(ggzmod) < 0) {
+ disconnect_from_server();
+ }
}
/****************************************************************************
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#17709) handle ggzmod errors,
Jason Dorje Short <=
|
|