From bbc8d05ec9ad4eaa97cbddd641f53a7afbcb35ae Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Sat, 18 Jul 2020 14:36:44 -0400 Subject: [PATCH] refactor: remove erronious error check --- runtime/src/worker_thread.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runtime/src/worker_thread.c b/runtime/src/worker_thread.c index fee4664..a22b215 100644 --- a/runtime/src/worker_thread.c +++ b/runtime/src/worker_thread.c @@ -64,10 +64,6 @@ worker_thread_switch_to_sandbox(struct sandbox *next_sandbox) next_context->variant); arch_context_switch(NULL, next_context); - - if (current_sandbox != NULL && current_sandbox->state == SANDBOX_RETURNED) { - panic("Unexpectedly returned to a sandbox in a RETURNED state\n"); - } } else { /* Set the current sandbox to the next */ assert(next_sandbox != current_sandbox);