summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-27 14:02:38 +0200
committerMax Kellermann <max@musicpd.org>2021-05-27 14:03:33 +0200
commitc692286c67973fd7500e82f189226516818c4e03 (patch)
tree141e1f7d638c8eca8f7bb2dc0bde4a7be179a038 /src
parent3775766605b4caa2c2d087d6545bcee4411aa7b0 (diff)
input/last: clear "uri" field in Close()
Prevent false negative after the stream was closed automatically after 20 seconds.
Diffstat (limited to 'src')
-rw-r--r--src/input/LastInputStream.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/LastInputStream.cxx b/src/input/LastInputStream.cxx
index 40bd5ccc2..e0829c122 100644
--- a/src/input/LastInputStream.cxx
+++ b/src/input/LastInputStream.cxx
@@ -32,6 +32,7 @@ LastInputStream::~LastInputStream() noexcept = default;
void
LastInputStream::Close() noexcept
{
+ uri.clear();
is.reset();
close_timer.Cancel();
}