input/last: add nullptr check to Open(), fixes assertion failure
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1165
This commit is contained in:
parent
96707c0426
commit
d3576a1b71
@ -69,7 +69,8 @@ public:
|
|||||||
|
|
||||||
is = open(new_uri, mutex);
|
is = open(new_uri, mutex);
|
||||||
uri = std::forward<U>(new_uri);
|
uri = std::forward<U>(new_uri);
|
||||||
ScheduleClose();
|
if (is)
|
||||||
|
ScheduleClose();
|
||||||
return is.get();
|
return is.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user