diff options
-rw-r--r-- | src/Network/Tox.hs | 6 |
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 | |||
88 | import Crypto.Tox | 88 | import Crypto.Tox |
89 | import Data.Word64Map (fitsInInt) | 89 | import Data.Word64Map (fitsInInt) |
90 | import qualified Data.Word64Map (empty) | 90 | import qualified Data.Word64Map (empty) |
91 | import Network.Kademlia.Bootstrap (forkPollForRefresh) | ||
91 | import Network.Tox.Crypto.Transport (NetCrypto) | 92 | import Network.Tox.Crypto.Transport (NetCrypto) |
92 | import Network.Tox.Crypto.Handlers (cryptoNetHandler, newSessionsState, defaultUnRecHook, defaultCryptoDataHooks, NetCryptoSessions(..)) | 93 | import Network.Tox.Crypto.Handlers (cryptoNetHandler, newSessionsState, defaultUnRecHook, defaultCryptoDataHooks, NetCryptoSessions(..)) |
93 | import qualified Network.Tox.DHT.Handlers as DHT | 94 | import 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 | ||