aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Connection.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/nfs/Connection.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx
index 13f7cd89c..934cf0a49 100644
--- a/src/lib/nfs/Connection.cxx
+++ b/src/lib/nfs/Connection.cxx
@@ -22,9 +22,9 @@
#include "Lease.hxx"
#include "Domain.hxx"
#include "Callback.hxx"
+#include "event/Loop.hxx"
#include "system/fd_util.h"
#include "util/Error.hxx"
-#include "event/Call.hxx"
extern "C" {
#include <nfsc/libnfs.h>
@@ -123,14 +123,13 @@ events_to_libnfs(unsigned i)
NfsConnection::~NfsConnection()
{
+ assert(SocketMonitor::GetEventLoop().IsInside());
assert(new_leases.empty());
assert(active_leases.empty());
assert(callbacks.IsEmpty());
if (context != nullptr)
- BlockingCall(SocketMonitor::GetEventLoop(), [this](){
- DestroyContext();
- });
+ DestroyContext();
}
void