From f8865b479c099bc51ffb8589f5a2627e7f12e87e Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Wed, 18 Nov 2020 14:25:31 +1000 Subject: [PATCH] hark-chat-hook: restart possibly killed subscription Issue #3946 may have caused the subscription to be killed by way of a crashed %fact handling. If so, restart the subscription. --- pkg/arvo/app/hark-chat-hook.hoon | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/arvo/app/hark-chat-hook.hoon b/pkg/arvo/app/hark-chat-hook.hoon index 0e2a47a84f..dcd1449ab5 100644 --- a/pkg/arvo/app/hark-chat-hook.hoon +++ b/pkg/arvo/app/hark-chat-hook.hoon @@ -51,7 +51,10 @@ ++ on-load |= old=vase ^- (quip card _this) - `this(state !<(state-0 old)) + :_ this(state !<(state-0 old)) + ?: (~(has by wex.bowl) [/chat our.bowl %chat-store]) + ~ + ~[watch-chat:ha] :: ++ on-watch |= =path