1
1
Fork 0
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:
Jeff Becker 2018-09-14 14:36:39 -04:00
parent 2bd7f2101d
commit dd6a8360ba
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -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;
}