summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-11-07 18:52:31 -0500
committerjoe <joe@jerkface.net>2017-11-08 02:30:43 -0500
commit83650b62724ae8deb90fc4659b3ead47d25ead53 (patch)
treecb898ea0cedb3d6a2d5edadf9d53827b30749462 /src/Network
parentdbce015d0137152f74f46dea3b00d2b51e7c53f7 (diff)
Tox: Added missing forkPollForRefresh threads.
Diffstat (limited to 'src/Network')
-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