lib/nfs/Connection: add assertion

This commit is contained in:
Max Kellermann 2014-12-14 22:45:29 +01:00
parent 02563a35f0
commit 1d3a09d377

View File

@ -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;