- Timestamp:
- 2006-05-27T15:33:58Z (18 years ago)
- Branches:
- master
- Children:
- 4ff0966
- Parents:
- 68b518d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/events_libevent.c
r68b518d6 rcdca30b 39 39 static guint id_next; 40 40 static GHashTable *id_hash; 41 static int quitting = 0; 41 42 42 43 /* Since libevent doesn't handle two event handlers for one fd-condition … … 75 76 struct timeval tv; 76 77 78 /* libevent sometimes generates events before really quitting, 79 we want to stop them. */ 80 quitting = 1; 81 77 82 memset( &tv, 0, sizeof( struct timeval ) ); 78 83 event_loopexit( &tv ); … … 98 103 (which free()s b_ev, we have to remember the ID here. */ 99 104 id = b_ev->id; 105 106 if( quitting ) 107 { 108 b_event_remove( id ); 109 return; 110 } 100 111 101 112 if( !b_ev->function( b_ev->data, fd, cond ) )
Note: See TracChangeset
for help on using the changeset viewer.