summaryrefslogtreecommitdiff
path: root/Presence/XMPP.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-11-17 22:36:59 -0500
committerjoe <joe@jerkface.net>2013-11-17 22:36:59 -0500
commite1185a619f8a08c2311dbc20648d6377b5b5fc7e (patch)
tree092e5ec9f36849355cb4ef5860fb51baeff967d0 /Presence/XMPP.hs
parent8ac3eda353868f04d4a2bfb503f3f286b1967476 (diff)
Ping debug prints
Diffstat (limited to 'Presence/XMPP.hs')
-rw-r--r--Presence/XMPP.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Presence/XMPP.hs b/Presence/XMPP.hs
index be84e221..853b015a 100644
--- a/Presence/XMPP.hs
+++ b/Presence/XMPP.hs
@@ -1146,6 +1146,8 @@ toPeer sock cache chan fail = do
1146 1146
1147 sockref <- liftIO $ atomically newEmptyTMVar 1147 sockref <- liftIO $ atomically newEmptyTMVar
1148 let bump fromsock = do 1148 let bump fromsock = do
1149 remote <- getPeerName sock
1150 debugL $ "PING BUMP" <++> showPeer (RemotePeer remote)
1149 timer <- atomically $ do 1151 timer <- atomically $ do
1150 putTMVar sockref fromsock 1152 putTMVar sockref fromsock
1151 (timer,v) <- readTVar pingref 1153 (timer,v) <- readTVar pingref
@@ -1167,6 +1169,7 @@ toPeer sock cache chan fail = do
1167 0 -> do 1169 0 -> do
1168 ping <- liftIO makePing 1170 ping <- liftIO makePing
1169 yield ping 1171 yield ping
1172 prettyPrint ">P: " ping
1170 loop 1173 loop
1171 _ -> do 1174 _ -> do
1172 remote <- liftIO $ getPeerName sock 1175 remote <- liftIO $ getPeerName sock