stream: eos on closed
stream.finished
should be invoked if stream is already closed/destroyed. Currently there is a potential deadlock depending on when stream.finished
is called.
For writable premature close is close before finish, i.e. it should look for finished
instead of ended
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines