aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Connection.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-01 22:07:56 +0200
committerMax Kellermann <max@duempel.org>2014-10-01 22:10:05 +0200
commit777360149d45cc07c40b53a1c1b7ab903b2b8b84 (patch)
treed57512e462d72766b193b5e2d55f0c3d532c90c3 /src/lib/nfs/Connection.cxx
parentaa7774b82bc2f32fe3f91f2d8aa416d65efa71ec (diff)
downloadmpd-777360149d45cc07c40b53a1c1b7ab903b2b8b84.tar.gz
mpd-777360149d45cc07c40b53a1c1b7ab903b2b8b84.tar.xz
mpd-777360149d45cc07c40b53a1c1b7ab903b2b8b84.zip
lib/nfs/Connection: remove obsolete flag postponed_destroy
Diffstat (limited to 'src/lib/nfs/Connection.cxx')
-rw-r--r--src/lib/nfs/Connection.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx
index 934cf0a49..cd6f1e2ef 100644
--- a/src/lib/nfs/Connection.cxx
+++ b/src/lib/nfs/Connection.cxx
@@ -263,7 +263,6 @@ NfsConnection::OnSocketReady(unsigned flags)
assert(!in_service);
in_service = true;
- postponed_destroy = false;
int result = nfs_service(context, events_to_libnfs(flags));
@@ -271,14 +270,7 @@ NfsConnection::OnSocketReady(unsigned flags)
assert(in_service);
in_service = false;
- if (postponed_destroy) {
- /* somebody has called nfs_client_free() while we were inside
- nfs_service() */
- const ScopeLock protect(mutex);
- DestroyContext();
- closed = true;
- // TODO? nfs_client_cleanup_files(client);
- } else if (!was_mounted && mount_finished) {
+ if (!was_mounted && mount_finished) {
const ScopeLock protect(mutex);
if (postponed_mount_error.IsDefined()) {