d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user