Do not call handle if not set, similar to bsd.c.

This commit is contained in:
Joris Vink 2015-12-02 21:57:16 +01:00
parent 1ed96b12a9
commit 77364e49cd
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ kore_platform_event_wait(u_int64_t timer)
!(c->flags & CONN_WRITE_BLOCK))
c->flags |= CONN_WRITE_POSSIBLE;
if (!c->handle(c))
if (c->handle != NULL && !c->handle(c))
kore_connection_disconnect(c);
break;
#if defined(KORE_USE_PGSQL)