diff options
Diffstat (limited to 'src/Crypto/Tox.hs')
-rw-r--r-- | src/Crypto/Tox.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Crypto/Tox.hs b/src/Crypto/Tox.hs index 7cfbd193..f427421e 100644 --- a/src/Crypto/Tox.hs +++ b/src/Crypto/Tox.hs | |||
@@ -306,7 +306,7 @@ lookupSharedSecret TransportCrypto{secretsCache} sk recipient nonce = do | |||
306 | let (r,v) = case MM.lookup' sk smm of | 306 | let (r,v) = case MM.lookup' sk smm of |
307 | Nothing | let miss = computeSharedSecret sk recipient | 307 | Nothing | let miss = computeSharedSecret sk recipient |
308 | -> (miss, MM.insertTake' 3 sk miss (Down now) smm) | 308 | -> (miss, MM.insertTake' 3 sk miss (Down now) smm) |
309 | Just (stamp2,hit) -> (hit , MM.insertTake' 3 sk hit (Down now) smm) | 309 | Just (stamp2,hit) -> (hit , MM.insert' sk hit (Down now) smm) |
310 | writeTVar (sharedSecret secretsCache) | 310 | writeTVar (sharedSecret secretsCache) |
311 | (MM.insertTake' 160 recipient v (Down now) mm) | 311 | (MM.insertTake' 160 recipient v (Down now) mm) |
312 | return $ r nonce | 312 | return $ r nonce |