summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Network/Tox.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 15b00780..5f691ef3 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -88,6 +88,7 @@ import GHC.TypeLits
88import Crypto.Tox 88import Crypto.Tox
89import Data.Word64Map (fitsInInt) 89import Data.Word64Map (fitsInInt)
90import qualified Data.Word64Map (empty) 90import qualified Data.Word64Map (empty)
91import Network.Kademlia.Bootstrap (forkPollForRefresh)
91import Network.Tox.Crypto.Transport (NetCrypto) 92import Network.Tox.Crypto.Transport (NetCrypto)
92import Network.Tox.Crypto.Handlers (cryptoNetHandler, newSessionsState, defaultUnRecHook, defaultCryptoDataHooks, NetCryptoSessions(..)) 93import Network.Tox.Crypto.Handlers (cryptoNetHandler, newSessionsState, defaultUnRecHook, defaultCryptoDataHooks, NetCryptoSessions(..))
93import qualified Network.Tox.DHT.Handlers as DHT 94import qualified Network.Tox.DHT.Handlers as DHT
@@ -358,5 +359,8 @@ forkTox tox = do
358 _ <- forkListener "toxCrypto" (toxCrypto tox) 359 _ <- forkListener "toxCrypto" (toxCrypto tox)
359 _ <- forkListener "toxToRoute" (toxToRoute tox) 360 _ <- forkListener "toxToRoute" (toxToRoute tox)
360 _ <- forkListener "toxOnion" (clientNet $ toxOnion tox) 361 _ <- forkListener "toxOnion" (clientNet $ toxOnion tox)
361 forkListener "toxDHT" (clientNet $ toxDHT tox) 362 quit <- forkListener "toxDHT" (clientNet $ toxDHT tox)
363 forkPollForRefresh (DHT.refresher4 $ toxRouting tox)
364 forkPollForRefresh (DHT.refresher6 $ toxRouting tox)
365 return quit
362 366