diff options
author | joe <joe@jerkface.net> | 2013-06-26 21:16:37 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2013-06-26 21:16:37 -0400 |
commit | 500863fe67432469c5055e592adfe1fe9ad927a8 (patch) | |
tree | 4f1fca090a6f7d65999b8d4a2d32699da054b79e /Presence | |
parent | 5610131fadb45479984da20143cbc87ce0b04a59 (diff) |
minor edit
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 |