From dbee8c2eaee69abe5c5cda4655fa11e0a8be3bf6 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 16 Apr 2025 15:17:56 -0400 Subject: [PATCH] cwIo.cpp : Remove the run-once record from p->threadOnceList if the unpause() fails in threadRunOnce(). --- cwIo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cwIo.cpp b/cwIo.cpp index 10b2879..dc3d565 100644 --- a/cwIo.cpp +++ b/cwIo.cpp @@ -2750,6 +2750,7 @@ cw::rc_t cw::io::threadRunOnce( handle_t h, unsigned id, bool asyncFl, thread_o errLabel: if( rc != kOkRC ) { + p->threadOnceList = t->link; thread::destroy(t->threadH); mem::release(t); }