diff --git a/src/lib/nfs/Connection.hxx b/src/lib/nfs/Connection.hxx
index b3db37c5d..d0a8a5da2 100644
--- a/src/lib/nfs/Connection.hxx
+++ b/src/lib/nfs/Connection.hxx
@@ -141,6 +141,10 @@ public:
 		return export_name.c_str();
 	}
 
+	EventLoop &GetEventLoop() {
+		return SocketMonitor::GetEventLoop();
+	}
+
 	/**
 	 * Ensure that the connection is established.  The connection
 	 * is kept up while at least one #NfsLease is registered.
@@ -165,10 +169,6 @@ protected:
 	virtual void OnNfsConnectionError(Error &&error) = 0;
 
 private:
-	EventLoop &GetEventLoop() {
-		return SocketMonitor::GetEventLoop();
-	}
-
 	void DestroyContext();
 
 	/**