Fix BufferedStdinImpl destruction.

This commit is contained in:
levlam 2020-12-24 20:49:08 +03:00
parent 47e413e0b8
commit c1a1fc881c

View File

@ -133,6 +133,7 @@ class BufferedStdinImpl : public Iocp::Callback {
} }
} }
if (!iocp_ref_.post(0, this, nullptr)) { if (!iocp_ref_.post(0, this, nullptr)) {
read_thread_.detach();
dec_refcnt(); dec_refcnt();
} }
} }