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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#15098) Re: civserver crash in calc_unit_ordering
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 8 Jan 2006 10:35:56 -0800
Reply-to: bugs@xxxxxxxxxxx

<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?

-mike





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