summaryrefslogtreecommitdiff
path: root/ToxManager.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ToxManager.hs')
-rw-r--r--ToxManager.hs12
1 files changed, 1 insertions, 11 deletions
diff --git a/ToxManager.hs b/ToxManager.hs
index aa838027..af1911d4 100644
--- a/ToxManager.hs
+++ b/ToxManager.hs
@@ -38,9 +38,6 @@ import Control.Concurrent.Lifted
38import GHC.Conc (labelThread) 38import GHC.Conc (labelThread)
39#endif 39#endif
40 40
41toxAnnounceInterval :: POSIXTime
42toxAnnounceInterval = 15
43
44toxAnnounceSendData :: Tox.Tox -> PublicKey 41toxAnnounceSendData :: Tox.Tox -> PublicKey
45 -> Nonce32 42 -> Nonce32
46 -> Maybe Tox.NodeInfo 43 -> Maybe Tox.NodeInfo
@@ -55,13 +52,6 @@ toxAnnounceSendData tox pubkey token = \case
55 Nothing -> return Nothing 52 Nothing -> return Nothing
56 53
57 54
58toxQSearch :: Tox.Tox -> Search Tox.NodeId (IP, PortNumber) Nonce32 Tox.NodeInfo Tox.Rendezvous
59toxQSearch tox = Tox.toxidSearch (Tox.onionTimeout tox) (Tox.toxCryptoKeys tox) (Tox.toxOnion tox)
60
61interweave :: [a] -> [a] -> [a]
62interweave [] ys = ys
63interweave (x:xs) ys = x : interweave ys xs
64
65-- | 55-- |
66-- 56--
67-- These hooks will be invoked in order to connect to *.tox hosts in a user's 57-- These hooks will be invoked in order to connect to *.tox hosts in a user's
@@ -100,7 +90,7 @@ toxman announcer toxbkts tox presence = ToxManager
100 toxAnnounceInterval) 90 toxAnnounceInterval)
101 pub 91 pub
102 92
103 forkAccountWatcher acnt tox presence 93 forkAccountWatcher acnt tox presence announcer
104 return () 94 return ()
105 95
106 , deactivateAccount = \k pubname -> do 96 , deactivateAccount = \k pubname -> do