Making sure all access to self.runningOperations is synchronized
This commit is contained in:
parent
ac98896099
commit
04a0431ae9
|
@ -301,7 +301,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)isRunning {
|
- (BOOL)isRunning {
|
||||||
return self.runningOperations.count > 0;
|
BOOL isRunning = NO;
|
||||||
|
@synchronized(self.runningOperations) {
|
||||||
|
isRunning = (self.runningOperations.count > 0);
|
||||||
|
}
|
||||||
|
return isRunning;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue