mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
dill: fix %shut session deletion
+abet would re-insert the session into state, so we just pull the deletion logic outside of the main core.
This commit is contained in:
parent
e53cb4a205
commit
998f7d081a
@ -219,10 +219,6 @@
|
||||
|= [g=gill _..open]
|
||||
(send [%yow g])
|
||||
::
|
||||
++ shut
|
||||
::TODO send a %bye blit?
|
||||
pull(eye.all (~(del by eye.all) ses))
|
||||
::
|
||||
++ send :: send action
|
||||
|= bet=dill-belt
|
||||
^+ +>
|
||||
@ -384,7 +380,12 @@
|
||||
=/ nus
|
||||
~| [%no-session ses]
|
||||
(need (ax hen ses))
|
||||
=^ moz all abet:shut:nus
|
||||
::NOTE we do deletion from state outside of the core,
|
||||
:: because +abet would re-insert.
|
||||
::TODO send a %bye blit? xx
|
||||
=^ moz all abet:pull:nus
|
||||
=. dug.all (~(del by dug.all) ses)
|
||||
=. eye.all (~(del by eye.all) ses)
|
||||
[moz ..^$]
|
||||
:: %view opens a subscription to the target session, on the current duct
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user