diff options
Diffstat (limited to 'dht/examples')
-rw-r--r-- | dht/examples/dhtd.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dht/examples/dhtd.hs b/dht/examples/dhtd.hs index c7fd4f06..da73159d 100644 --- a/dht/examples/dhtd.hs +++ b/dht/examples/dhtd.hs | |||
@@ -1667,7 +1667,7 @@ main = do | |||
1667 | "" -> return (return (), Map.empty,return [],[]) | 1667 | "" -> return (return (), Map.empty,return [],[]) |
1668 | p -> do | 1668 | p -> do |
1669 | addr <- getBindAddress p (ip6bt opts) | 1669 | addr <- getBindAddress p (ip6bt opts) |
1670 | (bt,btR,btBootstrap4, btBootstrap6) <- Mainline.newClient swarms addr | 1670 | (bt,btR,btBootstrap4, btBootstrap6,quitBtClient) <- Mainline.newClient swarms addr |
1671 | quitBt <- forkListener "bt" (clientNet bt) | 1671 | quitBt <- forkListener "bt" (clientNet bt) |
1672 | mainlineSearches <- atomically $ newTVar Map.empty | 1672 | mainlineSearches <- atomically $ newTVar Map.empty |
1673 | peerPort <- atomically $ newTVar 6881 -- BitTorrent client TCP port. | 1673 | peerPort <- atomically $ newTVar 6881 -- BitTorrent client TCP port. |
@@ -1748,7 +1748,7 @@ main = do | |||
1748 | [ Mainline.routing4 btR | 1748 | [ Mainline.routing4 btR |
1749 | , Mainline.routing6 btR | 1749 | , Mainline.routing6 btR |
1750 | ] | 1750 | ] |
1751 | return (quitBt,dhts,ips, [addr]) | 1751 | return (quitBt >> quitBtClient,dhts,ips, [addr]) |
1752 | 1752 | ||
1753 | keysdb <- Tox.newKeysDatabase | 1753 | keysdb <- Tox.newKeysDatabase |
1754 | 1754 | ||