Browse Source

use cloneTChan instead of dubTChan in dupSession

master
Philipp Balzarek 12 years ago
parent
commit
e6a559faa2
  1. 2
      source/Network/Xmpp/Concurrent/Basic.hs

2
source/Network/Xmpp/Concurrent/Basic.hs

@ -45,7 +45,7 @@ getStanza session = atomically . readTChan $ stanzaCh session
-- and can still be handled somewhere else. -- and can still be handled somewhere else.
dupSession :: Session -> IO Session dupSession :: Session -> IO Session
dupSession session = do dupSession session = do
stanzaCh' <- atomically $ dupTChan (stanzaCh session) stanzaCh' <- atomically $ cloneTChan (stanzaCh session)
return $ session {stanzaCh = stanzaCh'} return $ session {stanzaCh = stanzaCh'}
-- | Return the JID assigned to us by the server -- | Return the JID assigned to us by the server

Loading…
Cancel
Save