diff options
Diffstat (limited to 'ToxManager.hs')
-rw-r--r-- | ToxManager.hs | 12 |
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 | |||
38 | import GHC.Conc (labelThread) | 38 | import GHC.Conc (labelThread) |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | toxAnnounceInterval :: POSIXTime | ||
42 | toxAnnounceInterval = 15 | ||
43 | |||
44 | toxAnnounceSendData :: Tox.Tox -> PublicKey | 41 | toxAnnounceSendData :: 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 | ||
58 | toxQSearch :: Tox.Tox -> Search Tox.NodeId (IP, PortNumber) Nonce32 Tox.NodeInfo Tox.Rendezvous | ||
59 | toxQSearch tox = Tox.toxidSearch (Tox.onionTimeout tox) (Tox.toxCryptoKeys tox) (Tox.toxOnion tox) | ||
60 | |||
61 | interweave :: [a] -> [a] -> [a] | ||
62 | interweave [] ys = ys | ||
63 | interweave (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 |