proper shutdown of the ControlSession

This commit is contained in:
Johannes Pohl 2017-03-12 11:22:01 +01:00
parent 9e540c4855
commit df5f9bdeab
4 changed files with 23 additions and 19 deletions

View file

@ -61,8 +61,9 @@ public:
private:
void startAccept();
void handleAccept(socket_ptr socket);
void cleanup();
// void acceptor();
mutable std::mutex mutex_;
mutable std::recursive_mutex mutex_;
std::set<std::shared_ptr<ControlSession>> sessions_;
std::shared_ptr<tcp::acceptor> acceptor_;