mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
Merge pull request #6953 from urbit/yu/fix-flub
gall: don't ack %leave for non-running agents
This commit is contained in:
commit
3c926e5a00
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user