Changeset fc2ee0f for protocols/events_libevent.c
- Timestamp:
- 2006-05-13T10:29:53Z (19 years ago)
- Branches:
- master
- Children:
- 2b7d2d1
- Parents:
- b642f381
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/events_libevent.c
rb642f381 rfc2ee0f 72 72 struct b_event_data *b_ev = data; 73 73 b_input_condition cond = 0; 74 int id; 74 75 75 76 if( fd >= 0 ) … … 83 84 event_debug( "b_event_passthrough( %d, %d, 0x%x ) (%d)\n", fd, event, (int) data, b_ev->id ); 84 85 86 /* Since the called function might cancel this handler already 87 (which free()s b_ev, we have to remember the ID here. */ 88 id = b_ev->id; 89 85 90 if( !b_ev->function( b_ev->data, fd, cond ) ) 86 91 { 87 92 event_debug( "Handler returned FALSE: " ); 88 b_event_remove( b_ev->id );93 b_event_remove( id ); 89 94 } 90 95 } … … 151 156 else 152 157 { 153 event_debug( " Invalid?\n" );158 event_debug( "Double remove?\n" ); 154 159 } 155 160 }
Note: See TracChangeset
for help on using the changeset viewer.