summaryrefslogtreecommitdiff
path: root/dht/examples/dhtd.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-10-18 14:50:49 -0400
committerJoe Crayne <joe@jerkface.net>2020-01-01 19:56:38 -0500
commit811e3ec65c86694395b6c01409da62b6c0f8bf54 (patch)
tree2581794f8f9738bbef908c816280c225bc7aedba /dht/examples/dhtd.hs
parent000b1badd9403f4da9096597a1f85e4ccc10fb80 (diff)
Quit XMPP.monitor thread.
Diffstat (limited to 'dht/examples/dhtd.hs')
-rw-r--r--dht/examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dht/examples/dhtd.hs b/dht/examples/dhtd.hs
index 26e01c75..68c847c5 100644
--- a/dht/examples/dhtd.hs
+++ b/dht/examples/dhtd.hs
@@ -1637,9 +1637,9 @@ initJabber opts ssvar announcer mbtox toxdhts toxchat = case portxmpp opts of
1637 quitChatService <- forkLocalChat chat 1637 quitChatService <- forkLocalChat chat
1638 let chats = Map.fromList [ ("local", chat) 1638 let chats = Map.fromList [ ("local", chat)
1639 , ("ngc", toxchat) ] 1639 , ("ngc", toxchat) ]
1640 forkXmpp sv (presenceHooks state chats (verbosity opts) (Just cport) (Just sport)) 1640 xmpp_thread <- forkXmpp sv (presenceHooks state chats (verbosity opts) (Just cport) (Just sport))
1641 conns <- xmppConnections sv 1641 conns <- xmppConnections sv
1642 return (Just sv, Just conns, Just state, quitChatService) 1642 return (Just sv, Just conns, Just state, killThread xmpp_thread >> quitChatService)
1643 1643
1644main :: IO () 1644main :: IO ()
1645main = do 1645main = do