diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-06-18 03:24:22 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-06-18 03:24:22 +0000 |
commit | 7810e9bcde99a4bc05268b343ae3c21ae6fe8d7d (patch) | |
tree | e056b38aee37ac249477fb578bee914bed6245c1 /src/Network/Tox/Crypto | |
parent | 1784d1ff2e6c4197bf18824688691ebf7aa7ab3d (diff) |
labelThread immediately
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 2 |
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" |