Notify Tentacles when pending Remote approval is revoked
This commit is contained in:
1 parent
205cb27483
commit
9bc74dbb13
8 files changed
+61
-12
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user