From 07d273236d113ef8de871f1d982ee88b64e398dc Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 23 Feb 2016 12:31:48 -0800 Subject: [PATCH] Fix endless loop inside incoming handler. --- adsbus/incoming.c | 1 + 1 file changed, 1 insertion(+) diff --git a/adsbus/incoming.c b/adsbus/incoming.c index ae094e3..c50116f 100644 --- a/adsbus/incoming.c +++ b/adsbus/incoming.c @@ -106,6 +106,7 @@ static void incoming_listen(struct incoming *incoming) { } incoming->attempt = 0; + incoming->peer.event_handler = incoming_handler; peer_epoll_add((struct peer *) incoming, EPOLLIN); }