nfs/Connection: use only BroadcastError()

Since BroadcastError() calls BroadcastMountError(), there's no need to
check mount_finished here.
This commit is contained in:
Max Kellermann 2014-08-31 19:32:41 +02:00
parent 559a01f585
commit 6d643f92b7

View File

@ -299,10 +299,7 @@ NfsConnection::OnSocketReady(unsigned flags)
DestroyContext(); DestroyContext();
closed = true; closed = true;
if (!mount_finished) BroadcastError(std::move(error));
BroadcastMountError(std::move(error));
else
BroadcastError(std::move(error));
} }
assert(in_event); assert(in_event);