From e88f91f3b2ff15f48c5d8abc213a6dfe8db5d32f Mon Sep 17 00:00:00 2001 From: Philip Monk Date: Fri, 6 Dec 2019 14:22:11 -0800 Subject: [PATCH] eth-watcher: actually stop pending thread when restarting --- pkg/arvo/app/eth-watcher.hoon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/arvo/app/eth-watcher.hoon b/pkg/arvo/app/eth-watcher.hoon index d57de6025c..7f1c47ad3f 100644 --- a/pkg/arvo/app/eth-watcher.hoon +++ b/pkg/arvo/app/eth-watcher.hoon @@ -154,7 +154,7 @@ ~ [(wait-shortcut path.poke now.bowl) ~] :: - =/ restart-cards + =/ restart-cards=(list card) =/ dog (~(get by dogs.state) path.poke) ?. ?& restart ?=(^ dog) @@ -162,7 +162,7 @@ == ~ =/ =cage [%spider-stop !>([u.running.u.dog &])] - [%pass [%starting path] %agent [our.bowl %spider] %poke cage] + [%pass [%starting path] %agent [our.bowl %spider] %poke cage]~ =/ new-dog =/ dog=watchdog ?: restart *watchdog @@ -176,7 +176,7 @@ :: %clear =. dogs.state (~(del by dogs.state) path.poke) - [~ this] + [(weld wait-cards restart-cards) this] == :: :: +on-watch: subscribe & get initial subscription data