Skip to content

Commit

Permalink
Fix garbage value in timeout_override field
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Dec 22, 2023
1 parent 5908519 commit 4c1640f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/mqtt/Mqtt5ClientCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ namespace Aws

options.completion_callback = Mqtt5ClientCore::s_publishCompletionCallback;
options.completion_user_data = pubCallbackData;
options.ack_timeout_seconds_override = 0;

int result = aws_mqtt5_client_publish(m_client, &publish, &options);
if (result != AWS_OP_SUCCESS)
Expand Down Expand Up @@ -559,6 +560,7 @@ namespace Aws

options.completion_callback = Mqtt5ClientCore::s_subscribeCompletionCallback;
options.completion_user_data = subCallbackData;
options.ack_timeout_seconds_override = 0;

/* Subscribe to topic */
int result = aws_mqtt5_client_subscribe(m_client, &subscribe, &options);
Expand Down Expand Up @@ -592,6 +594,7 @@ namespace Aws

options.completion_callback = Mqtt5ClientCore::s_unsubscribeCompletionCallback;
options.completion_user_data = unSubCallbackData;
options.ack_timeout_seconds_override = 0;

int result = aws_mqtt5_client_unsubscribe(m_client, &unsubscribe, &options);
if (result != AWS_OP_SUCCESS)
Expand Down

0 comments on commit 4c1640f

Please sign in to comment.