Notify Tentacles when pending Remote approval is revoked

This commit is contained in:
ak47 committed 2026-11-04 14:43:22 -05:00
1 parent 205cb27483
commit 9bc74dbb13
8 files changed
+61 -12

No files matched your search

+2 -2
View File
@@ -182,8 +182,8 @@ func (session *Session) revoke_remote_locked(reason string, notify bool) {
access.timer.Stop()
}
session.release_remote_owner()
if notify && access.lease != "" {
event := tentaclewire.SessionEvent{Kind: "remote.revoked", Lease: access.lease, Epoch: access.epoch, Reason: reason}
if notify {
event := tentaclewire.SessionEvent{Kind: "remote.revoked", Action: access.action, Lease: access.lease, Epoch: access.epoch, Reason: reason}
if !session.remote_event_locked(&event) {
session.fail_locked(ErrLimit)
}