Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7405) list cleanup
Home

[Freeciv-Dev] Re: (PR#7405) list cleanup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7405) list cleanup
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Tue, 10 Feb 2004 10:04:08 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Tue, Feb 10, 2004 at 08:21:28AM -0800, Per I. Mathisen wrote:
>   void close_connection(struct connection *pconn)
>   {
>     while (timer_list_size(pconn->server.ping_timers) > 0) {
>       struct timer *timer = timer_list_get(pconn->server.ping_timers, 0);
> 
>       timer_list_unlink(pconn->server.ping_timers, timer);
>       free_timer(timer);
>     }
> +   assert(timer_list_size(pconn->server.ping_timers) == 0);
> +   timer_list_unlink_all(pconn->server.ping_timers);

The assert will never trigger.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Microsoft does have a year 2000 problem. I'm part of it. I'm running Linux.




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