Commit 0470f648 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Connection: add method GetEventLoop()

parent 77736014
......@@ -123,7 +123,7 @@ events_to_libnfs(unsigned i)
NfsConnection::~NfsConnection()
{
assert(SocketMonitor::GetEventLoop().IsInside());
assert(GetEventLoop().IsInside());
assert(new_leases.empty());
assert(active_leases.empty());
assert(callbacks.IsEmpty());
......
......@@ -133,6 +133,10 @@ protected:
virtual void OnNfsConnectionError(Error &&error) = 0;
private:
EventLoop &GetEventLoop() {
return SocketMonitor::GetEventLoop();
}
void DestroyContext();
bool MountInternal(Error &error);
void BroadcastMountSuccess();
......
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