CR: add some reachability asserts

pull/1/head
Michael Kirk 7 years ago
parent 9ad77399cb
commit c4677c9d4f

@ -233,6 +233,7 @@ public extension JobQueue {
func becameReachable() {
guard requiresInternet else {
owsFailDebug("should only be called if `requiresInternet` is true")
return
}

@ -191,6 +191,7 @@ NSString *const OWSOperationKeyIsFinished = @"isFinished";
self.remainingRetries--;
dispatch_sync(self.retryTimerSerialQueue, ^{
OWSAssertDebug(self.retryTimer == nil);
[self.retryTimer invalidate];
self.retryTimer = [NSTimer weakScheduledTimerWithTimeInterval:self.retryInterval
target:self

Loading…
Cancel
Save