chore: use condition variable to shutdown websocket pools (#5721)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "providers/twitch/PubSubClientOptions.hpp"
|
||||
#include "providers/twitch/PubSubWebsocket.hpp"
|
||||
#include "util/ExponentialBackoff.hpp"
|
||||
#include "util/OnceFlag.hpp"
|
||||
|
||||
#include <boost/asio/io_service.hpp>
|
||||
#include <boost/asio/ssl/context.hpp>
|
||||
@@ -267,6 +268,8 @@ private:
|
||||
const QString host_;
|
||||
const PubSubClientOptions clientOptions_;
|
||||
|
||||
OnceFlag stoppedFlag_;
|
||||
|
||||
bool stopping_{false};
|
||||
|
||||
#ifdef FRIEND_TEST
|
||||
|
||||
Reference in New Issue
Block a user