Commit a26bf261 authored by Max Kellermann's avatar Max Kellermann

input/last: call Close() in Open()

Prevents a possible bug which occurs when the caller-provided open() function throws; then the "uri" field is never set.
parent c692286c
......@@ -64,8 +64,7 @@ public:
return is.get();
}
is.reset();
close_timer.Cancel();
Close();
is = open(new_uri, mutex);
uri = std::forward<U>(new_uri);
......
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