Fix BufferedStdinImpl reference counter.
This commit is contained in:
parent
b582eb346a
commit
47e413e0b8
@ -127,8 +127,9 @@ class BufferedStdinImpl : public Iocp::Callback {
|
||||
break;
|
||||
}
|
||||
writer_.confirm_append(r_size.ok());
|
||||
if (iocp_ref_.post(0, this, nullptr)) {
|
||||
inc_refcnt();
|
||||
inc_refcnt();
|
||||
if (!iocp_ref_.post(0, this, nullptr)) {
|
||||
dec_refcnt();
|
||||
}
|
||||
}
|
||||
if (!iocp_ref_.post(0, this, nullptr)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user