Commit 6d643f92 authored by Max Kellermann's avatar Max Kellermann

nfs/Connection: use only BroadcastError()

Since BroadcastError() calls BroadcastMountError(), there's no need to check mount_finished here.
parent 559a01f5
......@@ -299,10 +299,7 @@ NfsConnection::OnSocketReady(unsigned flags)
DestroyContext();
closed = true;
if (!mount_finished)
BroadcastMountError(std::move(error));
else
BroadcastError(std::move(error));
BroadcastError(std::move(error));
}
assert(in_event);
......
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