Merge pull request #6953 from urbit/yu/fix-flub

gall: don't ack %leave for non-running agents
This commit is contained in:
Pyry Kovanen 2024-04-03 18:52:49 +03:00 committed by GitHub
commit 3c926e5a00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1147,10 +1147,8 @@
++ mo-handle-ames-request
|= [=ship agent-name=term =ames-request]
^+ mo-core
:: %u/%leave gets automatically acked
::
=. mo-core (mo-track-ship ship)
=? mo-core ?=(%u -.ames-request) (mo-give %done ~)
::
=/ yok=(unit yoke) (~(get by yokes.state) agent-name)
?~ yok
@ -1160,6 +1158,10 @@
?: ?=(%.n -.agent.u.yok)
(mo-give %flub ~)
::
:: %u/%leave gets automatically acked
::
=? mo-core ?=(%u -.ames-request)
(mo-give %done ~)
=/ =wire /sys/req/(scot %p ship)/[agent-name]
::
=/ =deal