X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=src%2Fnet.c;h=9b60a31446143dd3cce7c0cafe4da41f6077cfb8;hp=3f17083c192dec33ceb2fb5481513294263d6b8f;hb=51099658c919794cde72ea1107b9d9b9c3cee926;hpb=e00b44cb98e4d50a0d426048ba01dbd80bcb5941 diff --git a/src/net.c b/src/net.c index 3f17083..9b60a31 100644 --- a/src/net.c +++ b/src/net.c @@ -418,8 +418,13 @@ int main_loop(void) { } if(sigalrm) { + avl_node_t *node; logger(LOG_INFO, "Flushing event queue"); expire_events(); + for(node = connection_tree->head; node; node = node->next) { + connection_t *c = node->data; + send_ping(c); + } sigalrm = false; }