Skip to content

Commit 0d4c98e

Browse files
SeanTAllenmfelsche
authored andcommitted
Fix incorrect disposable/destroyed epoll resubscribe handling (#2781)
Correctly this time as I messed up the boolean logic in 8b21f0a. Closes #2684 See for initial incorrect PR #2744
1 parent de2d519 commit 0d4c98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libponyrt/asio/epoll.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ DECLARE_THREAD_FN(ponyint_asio_backend_dispatch)
274274

275275
if(flags != 0)
276276
{
277-
if (!(flags & ASIO_DESTROYED) || !(flags & ASIO_DISPOSABLE))
277+
if (!(flags & ASIO_DESTROYED) && !(flags & ASIO_DISPOSABLE))
278278
{
279279
if(ev->auto_resub && !(flags & ASIO_WRITE))
280280
pony_asio_event_resubscribe_write(ev);

0 commit comments

Comments
 (0)