Changeset c98be00


Ignore:
Timestamp:
2006-05-15T09:52:01Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
af9980f
Parents:
7a685f1
Message:

No more need for remove_by_user_data, hope the auto-reconnect code isn't too unreliable anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r7a685f1 rc98be00  
    248248         * This fixes daemon mode breakage where IRC doesn't point to the currently active connection.
    249249         */
    250         gc->irc=user->irc;
     250        gc->irc = user->irc;
    251251       
    252252        connections = g_slist_append( connections, gc );
     
    372372void cancel_auto_reconnect( account_t *a )
    373373{
    374         while( b_event_remove_by_data( (gpointer) a ) );
     374        /* while( b_event_remove_by_data( (gpointer) a ) ); */
     375        b_event_remove( a->reconnect );
    375376        a->reconnect = 0;
    376377}
     
    414415        {
    415416                int delay = set_getint( irc, "auto_reconnect_delay" );
     417               
    416418                serv_got_crap( gc, "Reconnecting in %d seconds..", delay );
    417                
    418                 a->reconnect = 1;
    419                 b_timeout_add( delay * 1000, auto_reconnect, a );
     419                a->reconnect = b_timeout_add( delay * 1000, auto_reconnect, a );
    420420        }
    421421       
Note: See TracChangeset for help on using the changeset viewer.