From c692286c67973fd7500e82f189226516818c4e03 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 May 2021 14:02:38 +0200 Subject: [PATCH] input/last: clear "uri" field in Close() Prevent false negative after the stream was closed automatically after 20 seconds. --- src/input/LastInputStream.cxx | 1 + 1 file changed, 1 insertion(+) 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(); }