aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test_async.c1
-rw-r--r--src/test_thread.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/test_async.c b/src/test_async.c
index c0c0cd116..313645dec 100644
--- a/src/test_async.c
+++ b/src/test_async.c
@@ -84,6 +84,7 @@ static Tcl_ThreadCreateType tclWriterThread(ClientData pIsStarted){
*((int *)pIsStarted) = 1;
sqlite3async_run();
Tcl_MutexUnlock(&testasync_g_writerMutex);
+ Tcl_ExitThread(0);
TCL_THREAD_CREATE_RETURN;
}
diff --git a/src/test_thread.c b/src/test_thread.c
index c4ade68ed..08494189c 100644
--- a/src/test_thread.c
+++ b/src/test_thread.c
@@ -150,6 +150,7 @@ static Tcl_ThreadCreateType tclScriptThread(ClientData pSqlThread){
Tcl_DecrRefCount(pList);
Tcl_DecrRefCount(pRes);
Tcl_DeleteInterp(interp);
+ Tcl_ExitThread(0);
TCL_THREAD_CREATE_RETURN;
}