From 6d643f92b7b52170cb83e068d41c07467be793cc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 31 Aug 2014 19:32:41 +0200 Subject: nfs/Connection: use only BroadcastError() Since BroadcastError() calls BroadcastMountError(), there's no need to check mount_finished here. --- src/lib/nfs/Connection.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index 9bcb241c2..64458fec6 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -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); -- cgit v1.2.3