Skip to content

Commit

Permalink
validate the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 14, 2024
1 parent d83708f commit 66f2e15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,9 @@ void aws_channel_schedule_task_future(
}

bool aws_channel_thread_is_callers_thread(struct aws_channel *channel) {
return aws_event_loop_thread_is_callers_thread(channel->loop);
if (channel && channel->loop)
return aws_event_loop_thread_is_callers_thread(channel->loop);
return true;
}

static void s_update_channel_slot_message_overheads(struct aws_channel *channel) {
Expand Down

0 comments on commit 66f2e15

Please sign in to comment.