<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40332 >

Jason Dorje Short wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=40332 >
> 
> * Start a server with civserver -q 180
> * Connect with a client
> * Disconnect
> * Watch the spam pile up.

Broken in 14371.  That appears to be a very sloppy patch which should 
probably be reviewed.  But this patch fixes the quitidle problem.

I will commit immediately.

-jason

Index: server/sernet.c
===================================================================
--- server/sernet.c	(revision 14901)
+++ server/sernet.c	(working copy)
@@ -510,8 +510,13 @@
             connections = FALSE;
 	  }
 	} else {
-          set_meta_message_string(N_("restarting for lack of players"));
-	  freelog(LOG_NORMAL, Q_(get_meta_message_string()));
+	  last_noplayers = time(NULL);
+
+	  freelog(LOG_NORMAL,
+		  _("restarting in %d seconds for lack of players"),
+		  srvarg.quitidle);
+
+          set_meta_message_string(N_("restarting soon for lack of players"));
 	  (void) send_server_info_to_metaserver(META_INFO);
 	}
       } else {
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to