diff options
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index 0996ffab..4c0cd114 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -1368,10 +1368,10 @@ main = do | |||
1368 | 1368 | ||
1369 | forkIO $ do | 1369 | forkIO $ do |
1370 | myThreadId >>= flip labelThread "XMPP.stanzas" | 1370 | myThreadId >>= flip labelThread "XMPP.stanzas" |
1371 | let console = cwPresenceChan $ consoleWriter state | 1371 | let console = cwPresenceChan <$> consoleWriter state |
1372 | fix $ \loop -> do | 1372 | fix $ \loop -> do |
1373 | what <- atomically | 1373 | what <- atomically |
1374 | $ orElse (do (client,stanza) <- takeTMVar console | 1374 | $ orElse (do (client,stanza) <- maybe retry takeTMVar console |
1375 | return $ do informClientPresence0 state Nothing client stanza | 1375 | return $ do informClientPresence0 state Nothing client stanza |
1376 | loop) | 1376 | loop) |
1377 | (checkQuit >> return (return ())) | 1377 | (checkQuit >> return (return ())) |