Oops! MacOSX is not working due to previous commit!

So I've fixed it right now.
This commit is contained in:
Sukchan Lee 2020-08-26 09:53:37 -04:00
parent 18c483950c
commit 83388cf504
2 changed files with 7 additions and 1 deletions

View File

@ -128,7 +128,7 @@ void amf_sctp_event_push(amf_event_e id,
}
#if HAVE_USRSCTP
else {
ogs_pollset_notify(amf_self()->pollset);
ogs_pollset_notify(ogs_app()->pollset);
}
#endif
}

View File

@ -44,7 +44,13 @@ void upf_event_init(void)
ogs_pool_init(&pool, ogs_app()->pool.event);
#if defined(HAVE_KQUEUE)
ogs_assert(ogs_app()->pollset);
ogs_pollset_destroy(ogs_app()->pollset);
pollset_action_setup();
ogs_app()->pollset = ogs_pollset_create(ogs_app()->pool.socket);
ogs_assert(ogs_app()->pollset);
#endif
}