mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-08 04:07:45 +02:00
Fix crash during shutdown
In case there are multiple PosixStreams with the same name, the server crashed during shutdown
This commit is contained in:
parent
e12fa3fc7d
commit
062e46060c
4 changed files with 9 additions and 7 deletions
|
@ -68,7 +68,7 @@ void PosixStream::connect()
|
|||
|
||||
void PosixStream::do_disconnect()
|
||||
{
|
||||
if (stream_->is_open())
|
||||
if (stream_ && stream_->is_open())
|
||||
stream_->close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue