diff options
author | Max Kellermann <max@duempel.org> | 2014-08-31 19:32:41 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-31 19:32:41 +0200 |
commit | 6d643f92b7b52170cb83e068d41c07467be793cc (patch) | |
tree | 372fad2109a6d77d07ad9bc250fae17567e2a7de /src/lib/nfs/Connection.cxx | |
parent | 559a01f585bba2dee2d5093ccdf6d91f3b304ae8 (diff) | |
download | mpd-6d643f92b7b52170cb83e068d41c07467be793cc.tar.gz mpd-6d643f92b7b52170cb83e068d41c07467be793cc.tar.xz mpd-6d643f92b7b52170cb83e068d41c07467be793cc.zip |
nfs/Connection: use only BroadcastError()
Since BroadcastError() calls BroadcastMountError(), there's no need to
check mount_finished here.
Diffstat (limited to 'src/lib/nfs/Connection.cxx')
-rw-r--r-- | src/lib/nfs/Connection.cxx | 5 |
1 files changed, 1 insertions, 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); |