Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10326) Connect to localhost:80
Home

[Freeciv-Dev] (PR#10326) Connect to localhost:80

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10326) Connect to localhost:80
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Sat, 25 Sep 2004 08:32:12 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10326 >

When you connect to non-freeciv server or hunged one you can press "Go
back", but the connection isn't closed in that case and strange things
happen.
I belive that this patch fixes it.
It's probably the last bug in connection dialog
--
mateusz
Index: client/gui-gtk-2.0/connectdlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/connectdlg.c,v
retrieving revision 1.48
diff -u -r1.48 connectdlg.c
--- client/gui-gtk-2.0/connectdlg.c     19 Sep 2004 01:00:54 -0000      1.48
+++ client/gui-gtk-2.0/connectdlg.c     25 Sep 2004 15:31:40 -0000
@@ -674,7 +674,8 @@
     load_callback(load_cmd, NULL);
     break;
   case CMD_PREV:
-    client_kill_server();
+    /* It will also kill internal server if there's one */
+    disconnect_from_server();
 
     gtk_notebook_set_current_page(GTK_NOTEBOOK(uberbook), FIRST_PAGE);
     break;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10326) Connect to localhost:80, Mateusz Stefek <=