summaryrefslogtreecommitdiff
path: root/xmppServer.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-02-11 20:48:34 -0500
committerjoe <joe@jerkface.net>2014-02-11 20:48:34 -0500
commitdf8038e9c7341ef470318aaafe517074aa553349 (patch)
treeab8c75a7d2f5c6baecf0701a3372cb8a86a3247f /xmppServer.hs
parent44cc78636b564d479d76be989fbb36fd1e720e10 (diff)
Switched to throw-to instead of hClose to quit reader thread
Diffstat (limited to 'xmppServer.hs')
-rw-r--r--xmppServer.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmppServer.hs b/xmppServer.hs
index 48745e51..e8864706 100644
--- a/xmppServer.hs
+++ b/xmppServer.hs
@@ -160,10 +160,9 @@ forkConnection k pingflag src snk stanzas = do
160 Just xml -> do 160 Just xml -> do
161 atomically $ Slotted.push slots Nothing xml 161 atomically $ Slotted.push slots Nothing xml
162 inner 162 inner
163 Nothing -> return ()) 163 Nothing -> loop)
164 (readTMVar rdone >> return (return ())) 164 (readTMVar rdone >> return (return ()))
165 what 165 what
166 loop
167 ,do pingflag >>= check 166 ,do pingflag >>= check
168 return $ do 167 return $ do
169 wlog $ "TODO: send ping" 168 wlog $ "TODO: send ping"