Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WatchApp Extension/ExtensionDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class ExtensionDelegate: NSObject, WKApplicationDelegate {
case let task as WKSnapshotRefreshBackgroundTask:
log.default("Processing WKSnapshotRefreshBackgroundTask")
task.setTaskCompleted(restoredDefaultState: false, estimatedSnapshotExpiration: Date(timeIntervalSinceNow: TimeInterval(minutes: 5)), userInfo: nil)
return // Don't call the standard setTaskCompleted handler
continue // Don't call the standard setTaskCompleted handler
case is WKURLSessionRefreshBackgroundTask:
break
case let task as WKWatchConnectivityRefreshBackgroundTask:
Expand All @@ -158,7 +158,7 @@ class ExtensionDelegate: NSObject, WKApplicationDelegate {
}

completePendingConnectivityTasksIfNeeded()
return // Defer calls to the setTaskCompleted handler
continue // Defer calls to the setTaskCompleted handler
default:
break
}
Expand Down