stream: Ignore events after close instead of aborting
Aborting places an unnecessary restriction on the event loop library.pull/42/head
parent
a0801f04e4
commit
d4a5ed4133
|
@ -236,7 +236,6 @@ static void stream__on_readable(struct stream* self)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case STREAM_STATE_CLOSED:
|
case STREAM_STATE_CLOSED:
|
||||||
abort();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -257,7 +256,6 @@ static void stream__on_writable(struct stream* self)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case STREAM_STATE_CLOSED:
|
case STREAM_STATE_CLOSED:
|
||||||
abort();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue