aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-01 20:44:54 +0200
committerMax Kellermann <max@duempel.org>2014-10-01 20:44:54 +0200
commit952fe987967b805046da95e9bcc424bba7fa397b (patch)
tree64ffc9753d07a348dc6ef7b4ad0bcdd8e2853b19 /src/lib/nfs
parent579912e52f371c07583e09095a5b89bfe88e872a (diff)
downloadmpd-952fe987967b805046da95e9bcc424bba7fa397b.tar.gz
mpd-952fe987967b805046da95e9bcc424bba7fa397b.tar.xz
mpd-952fe987967b805046da95e9bcc424bba7fa397b.zip
lib/nfs/Glue: add assertion
Diffstat (limited to '')
-rw-r--r--src/lib/nfs/Glue.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/nfs/Glue.cxx b/src/lib/nfs/Glue.cxx
index 6fc849609..287799b2f 100644
--- a/src/lib/nfs/Glue.cxx
+++ b/src/lib/nfs/Glue.cxx
@@ -24,6 +24,8 @@
#include "event/Call.hxx"
#include "util/Manual.hxx"
+#include <assert.h>
+
static Manual<NfsManager> nfs_glue;
static unsigned in_use;
@@ -50,5 +52,7 @@ nfs_finish()
NfsConnection &
nfs_get_connection(const char *server, const char *export_name)
{
+ assert(io_thread_inside());
+
return nfs_glue->GetConnection(server, export_name);
}