diff options
author | joe <joe@jerkface.net> | 2017-11-07 18:52:31 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-11-08 02:30:43 -0500 |
commit | 83650b62724ae8deb90fc4659b3ead47d25ead53 (patch) | |
tree | cb898ea0cedb3d6a2d5edadf9d53827b30749462 /src/Network | |
parent | dbce015d0137152f74f46dea3b00d2b51e7c53f7 (diff) |
Tox: Added missing forkPollForRefresh threads.
Diffstat (limited to 'src/Network')
-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 | ||