diff options
Diffstat (limited to 'Presence/main.hs')
-rw-r--r-- | Presence/main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Presence/main.hs b/Presence/main.hs index 317dc71e..3d5ac046 100644 --- a/Presence/main.hs +++ b/Presence/main.hs | |||
@@ -89,7 +89,7 @@ data PresenceState = PresenceState | |||
89 | , remoteUsers :: TVar (Map Peer (RefCount,TVar (MultiMap JabberUser (JabberResource,JabberShow)))) | 89 | , remoteUsers :: TVar (Map Peer (RefCount,TVar (MultiMap JabberUser (JabberResource,JabberShow)))) |
90 | 90 | ||
91 | -- outGoingConnections - a set of channels that may be used to send messages to remote peers. | 91 | -- outGoingConnections - a set of channels that may be used to send messages to remote peers. |
92 | , outGoingConnections :: TVar (Map Peer (TChan OutBoundMessage, ThreadId)) | 92 | , outGoingConnections :: OutgoingConnections CachedMessages |
93 | } | 93 | } |
94 | 94 | ||
95 | 95 | ||
@@ -108,7 +108,7 @@ newPresenceState hostname = atomically $ do | |||
108 | locals_greedy <- newEmptyTMVar | 108 | locals_greedy <- newEmptyTMVar |
109 | rchan <- newEmptyTMVar | 109 | rchan <- newEmptyTMVar |
110 | remotes <- newTVar (Map.empty) | 110 | remotes <- newTVar (Map.empty) |
111 | server_connections <- newServerConnections | 111 | server_connections <- newOutgoingConnections toPeer |
112 | return $ PresenceState hostname tty us subs locals_greedy rchan remotes server_connections | 112 | return $ PresenceState hostname tty us subs locals_greedy rchan remotes server_connections |
113 | 113 | ||
114 | 114 | ||