fix segfault on quit

This commit is contained in:
Jeff Becker 2018-09-10 07:05:41 -04:00
parent 1df9a4b078
commit cb2802e003
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -188,6 +188,8 @@ struct llarp_ev_loop
void void
tick_listeners() tick_listeners()
{ {
if(!running())
return;
for(auto& l : udp_listeners) for(auto& l : udp_listeners)
if(l->tick) if(l->tick)
l->tick(l); l->tick(l);