- Timestamp:
- 2008-06-09T01:52:28Z (16 years ago)
- Branches:
- master
- Children:
- 12ebe74
- Parents:
- e46e077 (diff), 783e9b7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
re46e077 rc4a1036 151 151 set_add( &irc->set, "private", "true", set_eval_bool, irc ); 152 152 set_add( &irc->set, "query_order", "lifo", NULL, irc ); 153 set_add( &irc->set, "root_nick", irc->mynick, set_eval_root_nick, irc ); 153 154 set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc ); 154 155 set_add( &irc->set, "simulate_netsplit", "true", set_eval_bool, irc ); … … 199 200 if( irc->sendbuffer && !immed ) 200 201 { 201 /* We won't read from this socket anymore. Instead, we'll connect a timer 202 to it that should shut down the connection in a second, just in case 203 bitlbee_.._write doesn't do it first. */ 202 /* Set up a timeout event that should shut down the connection 203 in a second, just in case ..._write doesn't do it first. */ 204 204 205 205 b_event_remove( irc->r_watch_source_id ); 206 irc->r_watch_source_id = b_timeout_add( 1000, (b_event_handler) irc_free, irc ); 206 irc->r_watch_source_id = 0; 207 208 b_event_remove( irc->ping_source_id ); 209 irc->ping_source_id = b_timeout_add( 1000, (b_event_handler) irc_free, irc ); 207 210 } 208 211 else … … 274 277 if( irc->ping_source_id > 0 ) 275 278 b_event_remove( irc->ping_source_id ); 276 b_event_remove( irc->r_watch_source_id ); 279 if( irc->r_watch_source_id > 0 ) 280 b_event_remove( irc->r_watch_source_id ); 277 281 if( irc->w_watch_source_id > 0 ) 278 282 b_event_remove( irc->w_watch_source_id );
Note: See TracChangeset
for help on using the changeset viewer.