mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
Do not call handle if not set, similar to bsd.c.
This commit is contained in:
parent
1ed96b12a9
commit
77364e49cd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user