[Freeciv-Dev] (PR#10974) No feedback when civserver goes away
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10974 >
> [chrisk - Thu Nov 11 11:40:40 2004]:
>
> > CVS 09 NOV 2004 S2 GTK2
>
> > When the civserver goes away, the client is set back to start
> > screen, but no message is given to the user on what's happening.
Here is a patch.
Index: client/clinet.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/clinet.c,v
retrieving revision 1.106
diff -u -u -r1.106 clinet.c
--- client/clinet.c 18 Oct 2004 23:49:27 -0000 1.106
+++ client/clinet.c 14 Nov 2004 23:07:52 -0000
@@ -120,11 +120,11 @@
**************************************************************************/
static void close_socket_callback(struct connection *pc)
{
- append_output_window(_("Lost connection to server!"));
- freelog(LOG_NORMAL, "lost connection to server");
close_socket_nomessage(pc);
/* If we lost connection to the internal server - kill him */
client_kill_server();
+ append_output_window(_("Lost connection to server!"));
+ freelog(LOG_NORMAL, "lost connection to server");
}
/**************************************************************************
@@ -237,11 +237,11 @@
**************************************************************************/
void disconnect_from_server(void)
{
- append_output_window(_("Disconnecting from server."));
close_socket_nomessage(&aconnection);
/* If it's internal server - kill him
* We assume that we are always connected to the internal server */
client_kill_server();
+ append_output_window(_("Disconnected from server."));
}
/**************************************************************************
|
|