mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
Fix access to a non existsing optional
This commit is contained in:
parent
337acd06e0
commit
b4a41e0fd7
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ void PcmStream::setProperties(const Properties& properties)
|
|||
url << "http://" << server_settings_.http.host << ":" << server_settings_.http.port << "/__image_cache?name=" << md5;
|
||||
props.metadata->art_url = url.str();
|
||||
}
|
||||
else if (!props.metadata->art_data.has_value())
|
||||
else if (!props.metadata.has_value() || !props.metadata->art_data.has_value())
|
||||
{
|
||||
server_settings_.http.image_cache.clear(getName());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue