Михаил Капелько 11 months ago
parent
commit
5cd4ad6d74
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Modules/MicX/MicItem/src/MicItem.Shoulds.swift

+ 4
- 4
Modules/MicX/MicItem/src/MicItem.Shoulds.swift View File

@@ -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


Loading…
Cancel
Save