Skip to content

Commit

Permalink
Fix on_connection_termination in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Aug 21, 2023
1 parent 157a733 commit f86f102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/v3/connection_state_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ static void s_on_connection_termination_fn(void *userdata) {

aws_mutex_lock(&state_test_data->lock);
state_test_data->connection_termination_calls += 1;
aws_mutex_unlock(&state_test_data->lock);

state_test_data->connection_terminated = true;
aws_mutex_unlock(&state_test_data->lock);
aws_condition_variable_notify_one(&state_test_data->cvar);
}

/** sets up a unix domain socket server and socket options. Creates an mqtt connection configured to use
Expand Down

0 comments on commit f86f102

Please sign in to comment.