mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-22 20:25:29 +00:00
check for timeout remaining 0
This commit is contained in:
@@ -1303,8 +1303,9 @@ func Clean(src *Id) dto.Identity {
|
||||
val := value.(*cziti.ZService)
|
||||
var svcMinTimeoutRemaining int32 = -1
|
||||
|
||||
if src.CId.MfaRefreshNeeded() && val.Service.TimeoutRemaining > 0 {
|
||||
if src.CId.MfaRefreshNeeded() && val.Service.TimeoutRemaining > -1 {
|
||||
var svcTimeout int32 = -1
|
||||
// to save the value from the pc timeout remaining, this value comes from the controller
|
||||
var svcTimeoutRemaining int32 = -1
|
||||
// fetch svc timeout and timeout remaining from pc
|
||||
for _, pc := range val.Service.PostureChecks {
|
||||
|
||||
Reference in New Issue
Block a user