From ba31db340b2cac12456e2e70a5a79ec90a277baa Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 6 Jul 2020 12:18:38 -0400 Subject: [PATCH] fix: panic on completed run loop --- runtime/src/worker_thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/worker_thread.c b/runtime/src/worker_thread.c index 5404367..cc19d31 100644 --- a/runtime/src/worker_thread.c +++ b/runtime/src/worker_thread.c @@ -205,8 +205,7 @@ worker_thread_main(void *return_code) local_completion_queue_free(); } - *(int *)return_code = -1; - pthread_exit(return_code); + panic("Worker Thread unexpectedly completed run loop."); } /**