summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-08-04 18:34:18 -0400
committerjoe <joe@jerkface.net>2017-08-04 18:34:18 -0400
commit1f1bcd70f5c0b7d3c1a135fa8b53a03b507442c4 (patch)
treed74c8f5e8f6acb025ec939d12ff26e275f72be43 /examples/dhtd.hs
parent4198ce253ea9ef9184b325e4bb8d18fcc483b381 (diff)
Switched awaitMessage to continuation-passing style.
Diffstat (limited to 'examples/dhtd.hs')
-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