mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-31 07:09:44 +02:00
clean server shutdown
This commit is contained in:
parent
83d7ca8856
commit
16f81e9c8e
4 changed files with 43 additions and 33 deletions
|
@ -64,16 +64,19 @@ public:
|
|||
virtual void onResync(const PipeReader* pipeReader, double ms);
|
||||
|
||||
private:
|
||||
void startAccept();
|
||||
void handleAccept(socket_ptr socket);
|
||||
void acceptor();
|
||||
mutable std::mutex mutex_;
|
||||
PipeReader* pipeReader_;
|
||||
set<shared_ptr<ServerSession>> sessions_;
|
||||
boost::asio::io_service io_service_;
|
||||
shared_ptr<tcp::acceptor> acceptor_;
|
||||
|
||||
ControlServerSettings settings_;
|
||||
msg::SampleFormat sampleFormat_;
|
||||
msg::ServerSettings serverSettings_;
|
||||
thread* acceptThread_;
|
||||
thread acceptThread_;
|
||||
Queue<shared_ptr<msg::BaseMessage>> messages_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue