summaryrefslogtreecommitdiff
path: root/Presence
diff options
context:
space:
mode:
Diffstat (limited to 'Presence')
-rw-r--r--Presence/Server.hs2
-rw-r--r--Presence/XMPPServer.hs5
2 files changed, 4 insertions, 3 deletions
diff --git a/Presence/Server.hs b/Presence/Server.hs
index 24cd5bce..6c2d1b5a 100644
--- a/Presence/Server.hs
+++ b/Presence/Server.hs
@@ -539,7 +539,7 @@ newConnection server params conkey u h inout = do
539 -} 539 -}
540 utc <- getCurrentTime 540 utc <- getCurrentTime
541 let utc' = formatTime defaultTimeLocale "%s" utc 541 let utc' = formatTime defaultTimeLocale "%s" utc
542 warn $ "ping:IDLE " <> bshow utc' 542 -- warn $ "ping:IDLE " <> bshow utc'
543 atomically $ announce ((conkey,u),RequiresPing) 543 atomically $ announce ((conkey,u),RequiresPing)
544 handleEOF conkey u mvar newCon 544 handleEOF conkey u mvar newCon
545 545
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs
index b9719fa4..dd693b8c 100644
--- a/Presence/XMPPServer.hs
+++ b/Presence/XMPPServer.hs
@@ -24,6 +24,7 @@ module XMPPServer
24 ) where 24 ) where
25 25
26import Debug.Trace 26import Debug.Trace
27import System.IO (hFlush,stdout)
27import Control.Monad.Trans.Resource (runResourceT) 28import Control.Monad.Trans.Resource (runResourceT)
28import Control.Monad.Trans (lift) 29import Control.Monad.Trans (lift)
29import Control.Monad.IO.Class (MonadIO, liftIO) 30import Control.Monad.IO.Class (MonadIO, liftIO)
@@ -235,10 +236,10 @@ peerKeyToResolvedName k@(PeerKey { callBackAddress=addr }) = do
235 236
236 237
237wlog :: String -> IO () 238wlog :: String -> IO ()
238wlog s = putStrLn s 239wlog s = putStrLn s >> hFlush stdout
239 240
240wlogb :: ByteString -> IO () 241wlogb :: ByteString -> IO ()
241wlogb s = Strict8.putStrLn s 242wlogb s = Strict8.putStrLn s >> hFlush stdout
242 243
243xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event 244xmlStream :: ReadCommand -> WriteCommand -> ( Source IO XML.Event
244 , Sink (Flush XML.Event) IO () ) 245 , Sink (Flush XML.Event) IO () )