Skip to content

Commit

Permalink
Fix access to a non existsing optional
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Jan 4, 2022
1 parent 337acd0 commit b4a41e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/streamreader/pcm_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit b4a41e0

Please sign in to comment.