summaryrefslogtreecommitdiff
path: root/Presence/XMPP.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-07-01 19:20:06 -0400
committerjoe <joe@jerkface.net>2013-07-01 19:20:06 -0400
commit99ae191859d14f06b531801eac386686605d333e (patch)
treeeebd55e6b2c400644ab5beb44077abce7180c210 /Presence/XMPP.hs
parentb92669321d536d8b935c77c63f5c68ccb99c938c (diff)
track remote useres in the remoteUsers map.
Diffstat (limited to 'Presence/XMPP.hs')
-rw-r--r--Presence/XMPP.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Presence/XMPP.hs b/Presence/XMPP.hs
index 9dfee14e..3d20a9b8 100644
--- a/Presence/XMPP.hs
+++ b/Presence/XMPP.hs
@@ -4,6 +4,7 @@
4{-# LANGUAGE ViewPatterns #-} 4{-# LANGUAGE ViewPatterns #-}
5module XMPP 5module XMPP
6 ( module XMPPTypes 6 ( module XMPPTypes
7 , module SocketLike
7 , listenForXmppClients 8 , listenForXmppClients
8 , listenForRemotePeers 9 , listenForRemotePeers
9 , seekRemotePeers 10 , seekRemotePeers
@@ -675,8 +676,6 @@ connect' addr port = do
675 -} 676 -}
676 let getport (SockAddrInet port _) = port 677 let getport (SockAddrInet port _) = port
677 getport (SockAddrInet6 port _ _ _) = port 678 getport (SockAddrInet6 port _ _ _) = port
678 let withPort (SockAddrInet _ a) port = SockAddrInet (toEnum port) a
679 withPort (SockAddrInet6 _ a b c) port = SockAddrInet6 (toEnum port) a b c
680 let doException (SomeException e) = do 679 let doException (SomeException e) = do
681 L.putStrLn $ "\nFailed to reach "<++> showPeer (RemotePeer addr) <++> " on port "<++>bshow port<++>": " <++> bshow e 680 L.putStrLn $ "\nFailed to reach "<++> showPeer (RemotePeer addr) <++> " on port "<++>bshow port<++>": " <++> bshow e
682 return Nothing 681 return Nothing