diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-19 04:14:50 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-19 04:14:50 +0400 |
commit | 644c06e66fd311cecabbc1cb08c53b4a1d350e27 (patch) | |
tree | 6c6fa68b721603618a59bb0906c72303922391a6 /src/Network/BitTorrent/DHT/Session.hs | |
parent | c34bbed3738b8ffec822abec5c2fd1b2cec8102a (diff) |
Stop DHT node at client cleanup
Diffstat (limited to 'src/Network/BitTorrent/DHT/Session.hs')
-rw-r--r-- | src/Network/BitTorrent/DHT/Session.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/DHT/Session.hs b/src/Network/BitTorrent/DHT/Session.hs index 1bc9e697..b4ff0208 100644 --- a/src/Network/BitTorrent/DHT/Session.hs +++ b/src/Network/BitTorrent/DHT/Session.hs | |||
@@ -308,6 +308,7 @@ startNode hs opts naddr logger = do | |||
308 | stopNode :: Node ip -> IO () | 308 | stopNode :: Node ip -> IO () |
309 | stopNode Node {..} = closeInternalState resources | 309 | stopNode Node {..} = closeInternalState resources |
310 | 310 | ||
311 | -- | Run DHT operation on the given session. | ||
311 | runDHT :: Node ip -> DHT ip a -> IO a | 312 | runDHT :: Node ip -> DHT ip a -> IO a |
312 | runDHT node action = runReaderT (unDHT action) node | 313 | runDHT node action = runReaderT (unDHT action) node |
313 | {-# INLINE runDHT #-} | 314 | {-# INLINE runDHT #-} |