From d4a5ed4133dada183d622c8a3660ae50b2f80c8f Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 19 Jul 2020 13:22:57 +0000 Subject: [PATCH] stream: Ignore events after close instead of aborting Aborting places an unnecessary restriction on the event loop library. --- src/stream.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/stream.c b/src/stream.c index 25a29fe..84a4518 100644 --- a/src/stream.c +++ b/src/stream.c @@ -236,7 +236,6 @@ static void stream__on_readable(struct stream* self) break; #endif case STREAM_STATE_CLOSED: - abort(); break; } } @@ -257,7 +256,6 @@ static void stream__on_writable(struct stream* self) break; #endif case STREAM_STATE_CLOSED: - abort(); break; } }