cwIo.cpp : Remove the run-once record from p->threadOnceList if the unpause() fails in threadRunOnce().

This commit is contained in:
kevin 2025-04-16 15:17:56 -04:00
parent af103abe97
commit dbee8c2eae

View File

@ -2750,6 +2750,7 @@ cw::rc_t cw::io::threadRunOnce( handle_t h, unsigned id, bool asyncFl, thread_o
errLabel: errLabel:
if( rc != kOkRC ) if( rc != kOkRC )
{ {
p->threadOnceList = t->link;
thread::destroy(t->threadH); thread::destroy(t->threadH);
mem::release(t); mem::release(t);
} }