fix cut-and-paste bug

This commit is contained in:
Charles Kerr 2007-09-05 23:58:35 +00:00
parent b1c9a9bd97
commit 3cd185747c
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ timerCB( int fd UNUSED, short event UNUSED, void * arg )
if( !node->doFree )
node->doFree = !(node->func)(node->user_data);
if( node->doFree ) {
if( !node->doFree )
tr_event_add( node->handle, node->event, &node->tv );
else {
if( node->free_func != NULL )
(node->free_func)( node->user_data );
tr_event_del( node->handle, node->event );