summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Crypto
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-06-18 03:24:22 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-06-18 03:24:22 +0000
commit7810e9bcde99a4bc05268b343ae3c21ae6fe8d7d (patch)
treee056b38aee37ac249477fb578bee914bed6245c1 /src/Network/Tox/Crypto
parent1784d1ff2e6c4197bf18824688691ebf7aa7ab3d (diff)
labelThread immediately
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r--src/Network/Tox/Crypto/Handlers.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs
index 2632c936..75446608 100644
--- a/src/Network/Tox/Crypto/Handlers.hs
+++ b/src/Network/Tox/Crypto/Handlers.hs
@@ -774,8 +774,8 @@ runUponHandshake netCryptoSession0 addr pktoq = do
774 pingMachine <- forkPingMachine ("NetCrypto." ++ show (key2id remotePublicKey)) (8000 + fuzz) 4000 774 pingMachine <- forkPingMachine ("NetCrypto." ++ show (key2id remotePublicKey)) (8000 + fuzz) 4000
775 pingThreadId <- forkIO $ do 775 pingThreadId <- forkIO $ do
776 tid <- myThreadId 776 tid <- myThreadId
777 event <- atomically $ pingWait pingMachine
778 labelThread tid ("NetCryptoPingSender." ++ show (key2id remotePublicKey) ++ "." ++ show (ncSessionId netCryptoSession0)) 777 labelThread tid ("NetCryptoPingSender." ++ show (key2id remotePublicKey) ++ "." ++ show (ncSessionId netCryptoSession0))
778 event <- atomically $ pingWait pingMachine
779 case event of 779 case event of
780 PingIdle -> do 780 PingIdle -> do
781 dput XNetCrypto $ "pingThread (session: " ++ show (ncSessionId netCryptoSession0) ++ ") PingIdle" 781 dput XNetCrypto $ "pingThread (session: " ++ show (ncSessionId netCryptoSession0) ++ ") PingIdle"