mirror of https://git.kore.io/kore.git
fix BSDs after last commit
This commit is contained in:
parent
7350131232
commit
46127459d9
|
@ -94,6 +94,8 @@ kore_platform_event_init(void)
|
||||||
/* Hack to check if we're running under the parent or not. */
|
/* Hack to check if we're running under the parent or not. */
|
||||||
if (worker != NULL) {
|
if (worker != NULL) {
|
||||||
LIST_FOREACH(l, &listeners, list) {
|
LIST_FOREACH(l, &listeners, list) {
|
||||||
|
if (l->fd == -1)
|
||||||
|
continue;
|
||||||
kore_platform_event_schedule(l->fd,
|
kore_platform_event_schedule(l->fd,
|
||||||
EVFILT_READ, EV_ADD | EV_DISABLE, l);
|
EVFILT_READ, EV_ADD | EV_DISABLE, l);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue