mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
don't tick in kqueue if closed
This commit is contained in:
parent
2bd7f2101d
commit
dd6a8360ba
1 changed files with 4 additions and 2 deletions
|
@ -195,7 +195,8 @@ struct llarp_kqueue_loop : public llarp_ev_loop
|
|||
++idx;
|
||||
}
|
||||
}
|
||||
tick_listeners();
|
||||
if(result != -1)
|
||||
tick_listeners();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -229,7 +230,8 @@ struct llarp_kqueue_loop : public llarp_ev_loop
|
|||
++idx;
|
||||
}
|
||||
}
|
||||
tick_listeners();
|
||||
if(result != -1)
|
||||
tick_listeners();
|
||||
} while(result != -1);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue