fix cut-and-paste bug
This commit is contained in:
parent
b1c9a9bd97
commit
3cd185747c
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue