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