From 9b75b49efd2f42b35bdc1c66619841ed931cf025 Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Thu, 26 Sep 2024 11:39:38 -0700 Subject: [PATCH] add back aws_event_loop_thread_is_callers_thread check for dispatch queue --- source/event_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/event_loop.c b/source/event_loop.c index aa239921f6..ce6e5b995b 100644 --- a/source/event_loop.c +++ b/source/event_loop.c @@ -560,7 +560,7 @@ int aws_event_loop_stop(struct aws_event_loop *event_loop) { } int aws_event_loop_wait_for_stop_completion(struct aws_event_loop *event_loop) { - AWS_EVENT_LOOP_NOT_CALLER_THREAD() + AWS_ASSERT(!aws_event_loop_thread_is_callers_thread(event_loop)); AWS_ASSERT(event_loop->vtable && event_loop->vtable->wait_for_stop_completion); return event_loop->vtable->wait_for_stop_completion(event_loop); }