diff --git a/Modules/MicX/MicItem/src/MicItem.Shoulds.swift b/Modules/MicX/MicItem/src/MicItem.Shoulds.swift index 69e8cd3..e7b53cf 100644 --- a/Modules/MicX/MicItem/src/MicItem.Shoulds.swift +++ b/Modules/MicX/MicItem/src/MicItem.Shoulds.swift @@ -11,14 +11,14 @@ public extension MicItem { return nil } - static func shouldResetTimeout(_ c: MicItemContext) -> (delay: Int, value: Bool)? { + static func shouldResetTimeout(_ c: MicItemContext) -> TimeInterval? { if c.activityDate.isRecent, let end = c.activityDate.value { - let now = Date() - let timeout = now < end - return (timeout, true) + let timeout = end.timerIntervalSinceNow() + /**/print("ИГР MicIS.shouldRT timeout: '\(timeout)'") + return nil } return nil