diff options
Diffstat (limited to 'Presence/XMPPServer.hs')
-rw-r--r-- | Presence/XMPPServer.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index e66eea70..7fc11124 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -1503,6 +1503,7 @@ monitor sv params xmpp = do | |||
1503 | RequiresPing -> return () -- wlog $ tomsg k "RequiresPing" | 1503 | RequiresPing -> return () -- wlog $ tomsg k "RequiresPing" |
1504 | _ -> return () | 1504 | _ -> return () |
1505 | , readTChan stanzas >>= \stanza -> return $ do | 1505 | , readTChan stanzas >>= \stanza -> return $ do |
1506 | {- | ||
1506 | dup <- case stanzaType stanza of | 1507 | dup <- case stanzaType stanza of |
1507 | -- Must dup anything that is going to be delivered... | 1508 | -- Must dup anything that is going to be delivered... |
1508 | Message {} -> do | 1509 | Message {} -> do |
@@ -1512,6 +1513,9 @@ monitor sv params xmpp = do | |||
1512 | dup <- cloneStanza stanza -- dupped so we can make debug print | 1513 | dup <- cloneStanza stanza -- dupped so we can make debug print |
1513 | return dup | 1514 | return dup |
1514 | _ -> return stanza | 1515 | _ -> return stanza |
1516 | -} | ||
1517 | dup <- cloneStanza stanza | ||
1518 | |||
1515 | forkIO $ do | 1519 | forkIO $ do |
1516 | case stanzaOrigin stanza of | 1520 | case stanzaOrigin stanza of |
1517 | NetworkOrigin k@(ClientKey {}) replyto -> | 1521 | NetworkOrigin k@(ClientKey {}) replyto -> |
@@ -1574,6 +1578,7 @@ monitor sv params xmpp = do | |||
1574 | case stanzaType stanza of | 1578 | case stanzaType stanza of |
1575 | PresenceRequestStatus {} -> do | 1579 | PresenceRequestStatus {} -> do |
1576 | xmppAnswerProbe xmpp k stanza replyto | 1580 | xmppAnswerProbe xmpp k stanza replyto |
1581 | _ -> return () | ||
1577 | _ -> return () | 1582 | _ -> return () |
1578 | let deliver replyto = do | 1583 | let deliver replyto = do |
1579 | -- TODO: Issuing RecipientUnavailable for all errors is a presence leak | 1584 | -- TODO: Issuing RecipientUnavailable for all errors is a presence leak |