Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2006:
[Freeciv-Dev] Re: (PR#15098) Re: civserver crash in calc_unit_ordering
Home

[Freeciv-Dev] Re: (PR#15098) Re: civserver crash in calc_unit_ordering

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#15098) Re: civserver crash in calc_unit_ordering
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 8 Jan 2006 11:15:26 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Mike Kaufman wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=15098 >
> 
> save_game is getting called here: in sniff_packets()
> 
>     /* end server if no players for 'srvarg.quitidle' seconds */
>     if (srvarg.quitidle != 0 && server_state != PRE_GAME_STATE) {
>       static time_t last_noplayers;
>       if(conn_list_size(&game.est_connections) == 0) {
>         if (last_noplayers != 0) {
>           if (time(NULL)>last_noplayers + srvarg.quitidle) {
>             if (srvarg.exit_on_end) {
>               save_game_auto();
>             }
> 
> because the game is not in PRE_GAME_STATE at the time. So the bug has to be
> that the server is in SELECT_RACES_STATE and have no players at the same
> time. Did anyone much with that code recently?

I committed a patch to this exact same piece of code (the quitidle 
patch), but only to the development version.

-jason





[Prev in Thread] Current Thread [Next in Thread]