diff options
author | Joe Crayne <joe@jerkface.net> | 2019-10-18 14:50:49 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-01 19:56:38 -0500 |
commit | 811e3ec65c86694395b6c01409da62b6c0f8bf54 (patch) | |
tree | 2581794f8f9738bbef908c816280c225bc7aedba /dht/examples/dhtd.hs | |
parent | 000b1badd9403f4da9096597a1f85e4ccc10fb80 (diff) |
Quit XMPP.monitor thread.
Diffstat (limited to 'dht/examples/dhtd.hs')
-rw-r--r-- | dht/examples/dhtd.hs | 4 |
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 | ||
1644 | main :: IO () | 1644 | main :: IO () |
1645 | main = do | 1645 | main = do |