diff options
Diffstat (limited to 'Presence/XMPP.hs')
-rw-r--r-- | Presence/XMPP.hs | 3 |
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 |