summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index f0a48bb2..8e8d47a2 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -469,13 +469,13 @@ main = do
469 (atomically . writeTVar (Mainline.contactInfo swarms)) 469 (atomically . writeTVar (Mainline.contactInfo swarms))
470 (peerdb >>= S.decodeLazy) 470 (peerdb >>= S.decodeLazy)
471 471
472 quitBt <- forkListener bt 472 quitBt <- forkListener (clientNet bt)
473 473
474 let toxport = succ $ fromMaybe 33445 (fromIntegral <$> sockAddrPort addr) 474 let toxport = succ $ fromMaybe 33445 (fromIntegral <$> sockAddrPort addr)
475 addrTox <- getBindAddress (show toxport) True 475 addrTox <- getBindAddress (show toxport) True
476 (tox,toxR) <- Tox.newClient addrTox 476 (tox,toxR) <- Tox.newClient addrTox
477 477
478 quitTox <- forkListener tox 478 quitTox <- forkListener (clientNet tox)
479 479
480 mainlineSearches <- atomically $ newTVar Map.empty 480 mainlineSearches <- atomically $ newTVar Map.empty
481 toxSearches <- atomically $ newTVar Map.empty 481 toxSearches <- atomically $ newTVar Map.empty