Commit 1d3a09d3 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Connection: add assertion

parent 02563a35
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment