summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-11-01 14:25:50 -0400
committerjoe <joe@jerkface.net>2017-11-01 14:25:50 -0400
commitb879c3c1030f08091e6b796f838dddd7f0e9f4a8 (patch)
tree72ffd823a7af2bffd0d185054ff78aac8185ab25 /examples
parentf4b3d84c81d962d5ff15dd99ee1815e5734b596d (diff)
Prevent announce from wrongly halting client session.
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index f54c5249..e5539036 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -605,7 +605,7 @@ clientSession s@Session{..} sock cnum h = do
605 doit :: Char -> Announcer -> AnnounceKey -> AnnounceMethod r -> r -> IO () 605 doit :: Char -> Announcer -> AnnounceKey -> AnnounceMethod r -> r -> IO ()
606 doit '+' = schedule 606 doit '+' = schedule
607 doit '-' = cancel 607 doit '-' = cancel
608 doit _ = \_ _ _ _ -> hPutClient h "Starting(+) or canceling(-)?" 608 doit _ = \_ _ _ _ -> hPutClientChunk h "Starting(+) or canceling(-)?"
609 matchingResult :: 609 matchingResult ::
610 ( Typeable stok 610 ( Typeable stok
611 , Typeable ptok 611 , Typeable ptok
@@ -668,6 +668,7 @@ clientSession s@Session{..} sock cnum h = do
668 (qresultAddr dta) 668 (qresultAddr dta)
669 announceInterval) 669 announceInterval)
670 dta 670 dta
671 hPutClient h "ok."
671 let aerror = unlines 672 let aerror = unlines
672 [ "announce error." 673 [ "announce error."
673 , "method = " ++ method 674 , "method = " ++ method