diff --git a/src/input/LastInputStream.hxx b/src/input/LastInputStream.hxx
index 2121772a0..635e87741 100644
--- a/src/input/LastInputStream.hxx
+++ b/src/input/LastInputStream.hxx
@@ -69,7 +69,8 @@ public:
 
 		is = open(new_uri, mutex);
 		uri = std::forward<U>(new_uri);
-		ScheduleClose();
+		if (is)
+			ScheduleClose();
 		return is.get();
 	}