aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Connection.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-14 22:45:29 +0100
committerMax Kellermann <max@duempel.org>2014-12-14 22:51:37 +0100
commit1d3a09d3770cb9b0f9018bd4ee68240fca5171fe (patch)
treefcfc3c84b122de61e4da73ba28d12a8e3cd3deda /src/lib/nfs/Connection.cxx
parent02563a35f0ce4bb5154a68bd568d0263c76ec261 (diff)
downloadmpd-1d3a09d3770cb9b0f9018bd4ee68240fca5171fe.tar.gz
mpd-1d3a09d3770cb9b0f9018bd4ee68240fca5171fe.tar.xz
mpd-1d3a09d3770cb9b0f9018bd4ee68240fca5171fe.zip
lib/nfs/Connection: add assertion
Diffstat (limited to 'src/lib/nfs/Connection.cxx')
-rw-r--r--src/lib/nfs/Connection.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx
index 04c5a9e53..56abf7129 100644
--- a/src/lib/nfs/Connection.cxx
+++ b/src/lib/nfs/Connection.cxx
@@ -501,6 +501,8 @@ NfsConnection::OnSocketReady(unsigned flags)
closed = true;
}
+ assert(context == nullptr || nfs_get_fd(context) >= 0);
+
#ifndef NDEBUG
assert(in_event);
in_event = false;