mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
Fix crash if message deserialization fails
This commit is contained in:
parent
e94b5534b7
commit
fba20fb7fe
2 changed files with 7 additions and 0 deletions
|
@ -123,6 +123,11 @@ void Controller::getNextMessage()
|
|||
reconnect();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!response)
|
||||
{
|
||||
return getNextMessage();
|
||||
}
|
||||
|
||||
if (response->type == message_type::kWireChunk)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue