mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 01:46:16 +02:00
trigger onDisconnect
This commit is contained in:
parent
e05e2fdd9d
commit
e5698d8ab1
4 changed files with 24 additions and 5 deletions
|
@ -42,6 +42,7 @@ class MessageReceiver
|
|||
{
|
||||
public:
|
||||
virtual void onMessageReceived(ServerSession* connection, const msg::BaseMessage& baseMessage, char* buffer) = 0;
|
||||
virtual void onDisconnect(ServerSession* connection) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -96,6 +97,7 @@ protected:
|
|||
void getNextMessage();
|
||||
void reader();
|
||||
void writer();
|
||||
void setActive(bool active);
|
||||
|
||||
std::atomic<bool> active_;
|
||||
std::atomic<bool> streamActive_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue