Commit d3576a1b authored by Max Kellermann's avatar Max Kellermann

input/last: add nullptr check to Open(), fixes assertion failure

parent 96707c04
...@@ -69,6 +69,7 @@ public: ...@@ -69,6 +69,7 @@ public:
is = open(new_uri, mutex); is = open(new_uri, mutex);
uri = std::forward<U>(new_uri); uri = std::forward<U>(new_uri);
if (is)
ScheduleClose(); ScheduleClose();
return is.get(); return is.get();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment