input/last: clear "uri" in OnCloseTimer()
Without clearing the "uri" field, the next Open() call attempts to reuse the old InputStream, but it has already been closed, so Open() always returns nullptr. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1300
This commit is contained in:
parent
72621531e0
commit
e16109330d
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
|||
ver 0.23.2 (not yet released)
|
||||
* protocol
|
||||
- fix "albumart" timeout bug
|
||||
* input
|
||||
- nfs: fix playback bug
|
||||
* output
|
||||
|
|
|
@ -42,5 +42,6 @@ LastInputStream::OnCloseTimer() noexcept
|
|||
{
|
||||
assert(is);
|
||||
|
||||
uri.clear();
|
||||
is.reset();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue