summaryrefslogtreecommitdiff
path: root/src/Network/Tox.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-18 00:49:38 -0400
committerjoe <joe@jerkface.net>2018-06-18 00:49:38 -0400
commit07b1494c9d5c692371c9689a8f78f4cf7ee58732 (patch)
treeaac158efc14bdb210717018704c43f2542804bf8 /src/Network/Tox.hs
parent6de7e6d299254010ebe2fd3fc5fb7c7fd6c89fc6 (diff)
Tox: Added timestamps to dhtkey and sockaddr information.
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r--src/Network/Tox.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 29b980b7..5a4c02ea 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -294,7 +294,7 @@ netCryptoWithBackoff millisecs tox myseckey theirpubkey = do
294 (Nothing,_,_,_) -> do 294 (Nothing,_,_,_) -> do
295 hPutStrLn stderr ("netCrypto: (" ++ show mykeyAsId ++") no DHT-key for friend (" ++ show theirkeyAsId ++ "). TODO: what?") 295 hPutStrLn stderr ("netCrypto: (" ++ show mykeyAsId ++") no DHT-key for friend (" ++ show theirkeyAsId ++ "). TODO: what?")
296 return [] 296 return []
297 (Just keyPkt,Just saddr,mbFR,mbPolicy) 297 (Just (stamp_theirDhtKey,keyPkt),Just (stamp_saddr,saddr),mbFR,mbPolicy)
298 | theirDhtKey <- DHT.dhtpk keyPkt -> do 298 | theirDhtKey <- DHT.dhtpk keyPkt -> do
299 -- Do we already have an active session with this user? 299 -- Do we already have an active session with this user?
300 sessionsMap <- atomically $ readTVar (netCryptoSessionsByKey (toxCryptoSessions tox) ) 300 sessionsMap <- atomically $ readTVar (netCryptoSessionsByKey (toxCryptoSessions tox) )