summaryrefslogtreecommitdiff
path: root/Presence/Server.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-06-15 20:40:02 -0400
committerjoe <joe@jerkface.net>2013-06-15 20:40:02 -0400
commit6f3a91fe495426643ff5ee0027ee602aabfa6e6c (patch)
tree019b8ab96725bd974388bf87982c20712a73681f /Presence/Server.hs
parent28b4425f8392adeeab3978672ea615eb41eed59a (diff)
xmppserver
Diffstat (limited to 'Presence/Server.hs')
-rw-r--r--Presence/Server.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Presence/Server.hs b/Presence/Server.hs
index c41f047f..5dce323c 100644
--- a/Presence/Server.hs
+++ b/Presence/Server.hs
@@ -54,7 +54,8 @@ doServer port g startCon = runServer2 port (runConn2 g)
54 h <- socketToHandle sock ReadWriteMode 54 h <- socketToHandle sock ReadWriteMode
55 hSetBuffering h NoBuffering 55 hSetBuffering h NoBuffering
56 st'' <- startCon (h .*. st) 56 st'' <- startCon (h .*. st)
57 handle (\(SomeException _) -> return ()) $ fix $ \loop -> do 57 let doException (SomeException e) = Prelude.putStrLn ("\n\nexception: " ++ show e ++ "\n\n")
58 handle doException $ fix $ \loop -> do
58 let continue () = hIsEOF h >>= flip when loop . not 59 let continue () = hIsEOF h >>= flip when loop . not
59 packet <- getPacket h 60 packet <- getPacket h
60 g st'' packet continue 61 g st'' packet continue