From 52648a96de8b39406b0da3fc0794f25d12a62e42 Mon Sep 17 00:00:00 2001 From: yosoyubik Date: Tue, 26 Mar 2024 07:29:56 +0100 Subject: [PATCH] ames: on flub, check if pending-vane-ack queue is not empty --- pkg/arvo/sys/vane/ames.hoon | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/arvo/sys/vane/ames.hoon b/pkg/arvo/sys/vane/ames.hoon index 43007fbbdd..e110e75f6b 100644 --- a/pkg/arvo/sys/vane/ames.hoon +++ b/pkg/arvo/sys/vane/ames.hoon @@ -4585,10 +4585,12 @@ %drop sink(nax.state (~(del in nax.state) message-num.task)) %done (done ok.task) %flub - %= sink - last-heard.state (dec last-heard.state) - pending-vane-ack.state ~(nap to pending-vane-ack.state) - == + =? pending-vane-ack.state ?=(^ pending-vane-ack.state) + :: a %leave gets acked in %gall before sending the %flub, + :: so %ames has already removed the pending ack from its queue + :: + ~(nap to pending-vane-ack.state) + sink(last-heard.state (dec last-heard.state)) :: %hear |^ ?: ?| corked