summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Crypto
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2017-11-21 21:58:22 +0000
committerJames Crayne <jim.crayne@gmail.com>2017-11-21 21:58:50 +0000
commit38e163ed3d722c6bafb442c67413373a0743ec62 (patch)
tree537548161381a4d9c3ee171053a6b21229261ae7 /src/Network/Tox/Crypto
parent8181409732c647f60a2c1a7e3d2f16ad17d15d86 (diff)
slightly better default outgoing map, but needs optimizing etc
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r--src/Network/Tox/Crypto/Handlers.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs
index 13ee0ed2..4f53888b 100644
--- a/src/Network/Tox/Crypto/Handlers.hs
+++ b/src/Network/Tox/Crypto/Handlers.hs
@@ -331,7 +331,8 @@ freshCryptoSession sessions
331 ncHooks0 <- atomically $ newTVar (defaultHooks sessions) 331 ncHooks0 <- atomically $ newTVar (defaultHooks sessions)
332 ncUnrecognizedHook0 <- atomically $ newTVar (defaultUnrecognizedHook sessions) 332 ncUnrecognizedHook0 <- atomically $ newTVar (defaultUnrecognizedHook sessions)
333 ncIncomingTypeArray0 <- atomically $ newTVar (msgTypeArray sessions) 333 ncIncomingTypeArray0 <- atomically $ newTVar (msgTypeArray sessions)
334 ncOutgoingIdMap0 <- atomically $ newTVar W64.empty 334 let idMap = foldl (\mp (x,y) -> W64.insert x y mp) W64.empty (zip [0..255] [0..255])
335 ncOutgoingIdMap0 <- atomically $ newTVar idMap
335 ncView0 <- atomically $ newTVar (sessionView sessions) 336 ncView0 <- atomically $ newTVar (sessionView sessions)
336 pktq <- atomically $ PQ.new (inboundQueueCapacity sessions) 0 337 pktq <- atomically $ PQ.new (inboundQueueCapacity sessions) 0
337 bufstart <- atomically $ newTVar 0 338 bufstart <- atomically $ newTVar 0