check for timeout remaining 0

This commit is contained in:
mary-dcouto
2021-09-03 13:38:46 +05:30
parent c1a92d7ee6
commit b18147fffd
+2 -1
View File
@@ -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 {