summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-09 07:59:51 +0200
committerMax Kellermann <max@duempel.org>2014-10-09 07:59:53 +0200
commitbfcc466647bbf9566e1352c6b6257dd59a66a145 (patch)
tree1ea9a0870c70fa729039b090fff407ed7f76a7c8
parent3d2558bde6cebd6b628935f2852572cc7bb6eeab (diff)
lib/nfs/Glue: add assertion
-rw-r--r--src/lib/nfs/Glue.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/nfs/Glue.cxx b/src/lib/nfs/Glue.cxx
index 287799b2f..6e1e0f99b 100644
--- a/src/lib/nfs/Glue.cxx
+++ b/src/lib/nfs/Glue.cxx
@@ -52,6 +52,7 @@ nfs_finish()
NfsConnection &
nfs_get_connection(const char *server, const char *export_name)
{
+ assert(in_use > 0);
assert(io_thread_inside());
return nfs_glue->GetConnection(server, export_name);