Skip to content

Commit 9ce8187

Browse files
committed
Core: Fix exiting thread from debugger
1 parent 0eba709 commit 9ce8187

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/thread.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ static THREAD_ENTRY _mCoreThreadRun(void* context) {
289289
MutexUnlock(&impl->stateMutex);
290290
mDebuggerRun(debugger);
291291
MutexLock(&impl->stateMutex);
292-
}
293-
if (debugger->state == DEBUGGER_SHUTDOWN) {
294-
impl->state = mTHREAD_EXITING;
292+
if (debugger->state == DEBUGGER_SHUTDOWN) {
293+
_changeState(impl, mTHREAD_EXITING);
294+
}
295295
}
296296
} else
297297
#endif

0 commit comments

Comments
 (0)