summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-05-26 19:47:58 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-05-26 19:47:58 +0000
commitdda052d5dfac60c647aff7f5a03605350eaf2f62 (patch)
tree0ea7855cc4617486c2f4e9b35ccd8a95dcbc4e1e
parentad52f14b981224137291281493b824b00cdd0497 (diff)
fix hang bug on p command
-rw-r--r--examples/dhtd.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index bb491bfc..eaf908f8 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -800,7 +800,9 @@ clientSession s@Session{..} sock cnum h = do
800 r <- parseResult tokenstr 800 r <- parseResult tokenstr
801 return $ case selectedKey of 801 return $ case selectedKey of
802 Nothing -> hPutClient h "Missing secret user-key." 802 Nothing -> hPutClient h "Missing secret user-key."
803 Just k -> asend k dta r 803 Just k -> do
804 asend k dta r
805 hPutClient h "Sent."
804 maybe (hPutClient h ("Unsupported method: "++method)) 806 maybe (hPutClient h ("Unsupported method: "++method))
805 goTarget 807 goTarget
806 $ Map.lookup method dhtAnnouncables 808 $ Map.lookup method dhtAnnouncables