Skip to content

Commit

Permalink
Always cleanup outstanding requests on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdenCullen committed Jan 11, 2019
1 parent 87f2a23 commit c12c597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ void aws_mqtt_client_connection_destroy(struct aws_mqtt_client_connection *conne
aws_mqtt_topic_tree_clean_up(&connection->subscriptions);

/* Cleanup outstanding requests */
assert(connection->outstanding_requests.table.p_impl == NULL);
aws_hash_table_clean_up(&connection->outstanding_requests.table);
aws_memory_pool_clean_up(&connection->requests_pool);

if (connection->slot) {
Expand Down

0 comments on commit c12c597

Please sign in to comment.