Skip to content

Commit

Permalink
Fix overridden timeout values for mqtt5 operations (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfod authored Dec 22, 2023
1 parent 5908519 commit c257f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/mqtt/Mqtt5ClientCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ namespace Aws
pubCallbackData->allocator = m_allocator;
pubCallbackData->onPublishCompletion = onPublishCompletionCallback;

aws_mqtt5_publish_completion_options options;
aws_mqtt5_publish_completion_options options{};

options.completion_callback = Mqtt5ClientCore::s_publishCompletionCallback;
options.completion_user_data = pubCallbackData;
Expand Down Expand Up @@ -555,7 +555,7 @@ namespace Aws
subCallbackData->allocator = m_allocator;
subCallbackData->onSubscribeCompletion = onSubscribeCompletionCallback;

aws_mqtt5_subscribe_completion_options options;
aws_mqtt5_subscribe_completion_options options{};

options.completion_callback = Mqtt5ClientCore::s_subscribeCompletionCallback;
options.completion_user_data = subCallbackData;
Expand Down Expand Up @@ -588,7 +588,7 @@ namespace Aws
unSubCallbackData->allocator = m_allocator;
unSubCallbackData->onUnsubscribeCompletion = onUnsubscribeCompletionCallback;

aws_mqtt5_unsubscribe_completion_options options;
aws_mqtt5_unsubscribe_completion_options options{};

options.completion_callback = Mqtt5ClientCore::s_unsubscribeCompletionCallback;
options.completion_user_data = unSubCallbackData;
Expand Down

0 comments on commit c257f45

Please sign in to comment.