Commit d3576a1b authored by Max Kellermann's avatar Max Kellermann

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

parent 96707c04
......@@ -69,7 +69,8 @@ public:
is = open(new_uri, mutex);
uri = std::forward<U>(new_uri);
ScheduleClose();
if (is)
ScheduleClose();
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