diff options
author | Max Kellermann <max@duempel.org> | 2014-12-14 22:45:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-14 22:51:37 +0100 |
commit | 1d3a09d3770cb9b0f9018bd4ee68240fca5171fe (patch) | |
tree | fcfc3c84b122de61e4da73ba28d12a8e3cd3deda /src/lib | |
parent | 02563a35f0ce4bb5154a68bd568d0263c76ec261 (diff) | |
download | mpd-1d3a09d3770cb9b0f9018bd4ee68240fca5171fe.tar.gz mpd-1d3a09d3770cb9b0f9018bd4ee68240fca5171fe.tar.xz mpd-1d3a09d3770cb9b0f9018bd4ee68240fca5171fe.zip |
lib/nfs/Connection: add assertion
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/nfs/Connection.cxx | 2 |
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; |