diff options
Diffstat (limited to 'Presence')
-rw-r--r-- | Presence/ConfigFiles.hs | 2 | ||||
-rw-r--r-- | Presence/XMPPServer.hs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Presence/ConfigFiles.hs b/Presence/ConfigFiles.hs index f0e18f70..48049c08 100644 --- a/Presence/ConfigFiles.hs +++ b/Presence/ConfigFiles.hs | |||
@@ -12,7 +12,7 @@ import Control.Exception | |||
12 | import Control.Monad | 12 | import Control.Monad |
13 | import Todo | 13 | import Todo |
14 | import Control.DeepSeq | 14 | import Control.DeepSeq |
15 | import ByteStringOperators | 15 | import ByteStringOperators() -- For NFData instance |
16 | 16 | ||
17 | type User = ByteString | 17 | type User = ByteString |
18 | 18 | ||
diff --git a/Presence/XMPPServer.hs b/Presence/XMPPServer.hs index 54ee0975..2329488e 100644 --- a/Presence/XMPPServer.hs +++ b/Presence/XMPPServer.hs | |||
@@ -488,6 +488,7 @@ startPeer session_factory sock st = do | |||
488 | js <- fmap Set.toList (readTVarIO jids) | 488 | js <- fmap Set.toList (readTVarIO jids) |
489 | let offline jid = Presence jid Offline | 489 | let offline jid = Presence jid Offline |
490 | forM_ js $ announcePresence session . offline | 490 | forM_ js $ announcePresence session . offline |
491 | closeSession session | ||
491 | return ( (session,jids) .*. ConnectionFinalizer quit .*. st ) | 492 | return ( (session,jids) .*. ConnectionFinalizer quit .*. st ) |
492 | 493 | ||
493 | doPeer st elem cont = do | 494 | doPeer st elem cont = do |