Changeset 5330e3d for protocols/events_libevent.c
- Timestamp:
- 2006-05-14T09:05:41Z (19 years ago)
- Branches:
- master
- Children:
- 85cf37f, b8b8c6c
- Parents:
- 919c27c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/events_libevent.c
r919c27c r5330e3d 229 229 properly before closing a socket. */ 230 230 231 if( ( b_ev = g_hash_table_lookup( read_hash, &fd ) ) || ( b_ev = g_hash_table_lookup( write_hash, &fd )) )232 { 233 event_debug( "Warning: Had to clean up some event handlers before closing fd %d.\n", fd );231 if( b_ev = g_hash_table_lookup( read_hash, &fd ) ) 232 { 233 event_debug( "Warning: fd %d still had a read event handler when shutting down.\n", fd ); 234 234 b_event_remove( b_ev->id ); 235 235 } 236 if( b_ev = g_hash_table_lookup( write_hash, &fd ) ) 237 { 238 event_debug( "Warning: fd %d still had a write event handler when shutting down.\n", fd ); 239 b_event_remove( b_ev->id ); 240 } 236 241 237 242 close( fd );
Note: See TracChangeset
for help on using the changeset viewer.