summaryrefslogtreecommitdiff
path: root/src/Network/Tox.hs
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-05-31 05:43:23 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-05-31 05:44:54 +0000
commitfca36b8792e00acc775d38611067813bdfa29c2f (patch)
tree0ca12f4357182e3fff4b66ee83b7e44f9e8e9420 /src/Network/Tox.hs
parente086fb825a24293725b5c57cc567739c4ca796db (diff)
comment netcrypto backoff loop for simpler debugging
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r--src/Network/Tox.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 7ee4dbe0..66a19097 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -346,7 +346,8 @@ netCryptoWithBackoff millisecs tox myseckey theirpubkey = do
346 then do 346 then do
347 hPutStrLn stderr $ "sent handshake, now delaying " ++ show (secnum * 1.25) ++ " second(s).." 347 hPutStrLn stderr $ "sent handshake, now delaying " ++ show (secnum * 1.25) ++ " second(s).."
348 threadDelay delay 348 threadDelay delay
349 netCryptoWithBackoff delay tox myseckey theirpubkey -- hopefully it will find an active session this time. 349 -- Commenting loop for simpler debugging
350 return [] -- netCryptoWithBackoff delay tox myseckey theirpubkey -- hopefully it will find an active session this time.
350 else do 351 else do
351 hPutStrLn stderr "Unable to establish session..." 352 hPutStrLn stderr "Unable to establish session..."
352 return [] 353 return []