diff --git a/source/event_loop.c b/source/event_loop.c index aa239921f..ce6e5b995 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); }