[mqtt-client] added completion condition paragraph to async functions

Summary: related to T12804

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D26421
This commit is contained in:
Korina Šimičević
2023-11-06 12:13:44 +01:00
parent 22eb70617c
commit d1356b7bb7
3 changed files with 86 additions and 40 deletions

View File

@@ -196,9 +196,10 @@ public:
template <typename Authenticator>
void authenticator(Authenticator&& authenticator) {
_stream_context.authenticator(
std::forward<Authenticator>(authenticator)
);
if (!is_open())
_stream_context.authenticator(
std::forward<Authenticator>(authenticator)
);
}
template <typename Prop>