From aeaabf8b0a9a3942eb665b62e7ae8f97ada69fdf Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 29 Mar 2015 02:20:38 -0400 Subject: documentation fix stopNode -> closeNode --- src/Network/BitTorrent/DHT/Session.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Network/BitTorrent/DHT/Session.hs') diff --git a/src/Network/BitTorrent/DHT/Session.hs b/src/Network/BitTorrent/DHT/Session.hs index 0c806db2..9aa25866 100644 --- a/src/Network/BitTorrent/DHT/Session.hs +++ b/src/Network/BitTorrent/DHT/Session.hs @@ -275,7 +275,7 @@ instance MonadActive (DHT ip) where monadActive = getManager >>= liftIO . isActive {-# INLINE monadActive #-} --- | All allocated resources will be closed at 'stopNode'. +-- | All allocated resources will be closed at 'closeNode'. instance MonadResource (DHT ip) where liftResourceT m = do s <- asks resources @@ -292,7 +292,7 @@ instance MonadLogger (DHT ip) where type NodeHandler ip = Handler (DHT ip) -- | Run DHT session. You /must/ properly close session using --- 'stopNode' function, otherwise socket or other scarce resources may +-- 'closeNode' function, otherwise socket or other scarce resources may -- leak. newNode :: Address ip => [NodeHandler ip] -- ^ handlers to run on accepted queries; -- cgit v1.2.3