Fix crash during shutdown

In case there are multiple PosixStreams with the same name, the server crashed during shutdown
This commit is contained in:
badaix 2020-01-06 18:50:57 +01:00
parent e12fa3fc7d
commit 062e46060c
4 changed files with 9 additions and 7 deletions

View file

@ -51,7 +51,7 @@ using session_ptr = std::shared_ptr<StreamSession>;
* Receives (via the MessageReceiver interface) and answers messages from the clients
* Forwards PCM data to the clients
*/
class StreamServer : public MessageReceiver, ControlMessageReceiver, PcmListener
class StreamServer : public MessageReceiver, public ControlMessageReceiver, public PcmListener
{
public:
StreamServer(boost::asio::io_context& io_context, const ServerSettings& serverSettings);