Skip to content

Commit

Permalink
clear the hash table on disconnect, not clean_up (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinboswell authored Mar 16, 2019
1 parent 7788398 commit 86aee87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.gitignore.io/api/macos,linux,clion,windows,visualstudiocode
.idea
2 changes: 1 addition & 1 deletion source/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void s_mqtt_client_shutdown(
connection->state = AWS_MQTT_CLIENT_STATE_DISCONNECTED;

/* Successfully shutdown, so clear the outstanding requests */
aws_hash_table_clean_up(&connection->outstanding_requests.table);
aws_hash_table_clear(&connection->outstanding_requests.table);

MQTT_CLIENT_CALL_CALLBACK(connection, on_disconnect);

Expand Down

0 comments on commit 86aee87

Please sign in to comment.