diff options
author | joe <joe@jerkface.net> | 2014-03-15 19:34:30 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2014-03-15 19:34:30 -0400 |
commit | 93a512dce45f2517d3e991bc8be075ca6ff5fc1b (patch) | |
tree | 8fd69abaf7108c2aff1b57f4add52b9e198ceb35 /xmppServer.hs | |
parent | 0a4d745e1f08c7c7a89f8c79ffb90170c13d2c88 (diff) |
Fixed wheezy build.
Diffstat (limited to 'xmppServer.hs')
-rw-r--r-- | xmppServer.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmppServer.hs b/xmppServer.hs index 1ab36cd6..efd790d0 100644 --- a/xmppServer.hs +++ b/xmppServer.hs | |||
@@ -998,10 +998,10 @@ main = runResourceT $ do | |||
998 | installHandler sigINT (CatchOnce (atomically $ putTMVar quitVar True)) Nothing | 998 | installHandler sigINT (CatchOnce (atomically $ putTMVar quitVar True)) Nothing |
999 | 999 | ||
1000 | forkIO $ do | 1000 | forkIO $ do |
1001 | console <- atomically $ dupTChan (cwPresenceChan $ consoleWriter state) | 1001 | let console = cwPresenceChan $ consoleWriter state |
1002 | fix $ \loop -> do | 1002 | fix $ \loop -> do |
1003 | what <- atomically | 1003 | what <- atomically |
1004 | $ orElse (do (client,stanza) <- readTChan console | 1004 | $ orElse (do (client,stanza) <- takeTMVar console |
1005 | return $ do informClientPresence0 state Nothing client stanza | 1005 | return $ do informClientPresence0 state Nothing client stanza |
1006 | loop) | 1006 | loop) |
1007 | (do readTMVar quitVar | 1007 | (do readTMVar quitVar |