mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-11-08 03:41:36 +01:00
Re-create client_service after stopping client's runloop and let it destroy asynchronously
Summary: related to T11798, #5 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27882
This commit is contained in:
@@ -81,6 +81,10 @@ public:
|
||||
_endpoints.brokers(std::move(hosts), default_port);
|
||||
}
|
||||
|
||||
void clone_endpoints(const autoconnect_stream& other) {
|
||||
_endpoints.clone_servers(other._endpoints);
|
||||
}
|
||||
|
||||
bool is_open() const noexcept {
|
||||
return lowest_layer(*_stream_ptr).is_open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user