input/last: add nullptr check to Open(), fixes assertion failure

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1165
This commit is contained in:
Max Kellermann 2021-05-21 19:30:28 +02:00
parent 96707c0426
commit d3576a1b71

View File

@ -69,7 +69,8 @@ public:
is = open(new_uri, mutex);
uri = std::forward<U>(new_uri);
ScheduleClose();
if (is)
ScheduleClose();
return is.get();
}