Make Thread Sanitizer happy.

This commit is contained in:
Damiano Galassi committed 2017-06-20 16:17:17 +02:00
1 parent 4f72d8aabd
commit ad673993f5
17 files changed
+89 -53

No files matched your search

+2 -2
View File
@@ -155,7 +155,7 @@
trackSize.width = track.trackWidth;
trackSize.height = track.trackHeight;
while (![_ss isEmpty] && !_cancelled) {
while (!_ss.isEmpty && !self.isCancelled) {
SBSubLine *sl = [_ss getSerializedPacket];
if ([sl->line isEqualToString:@"\n"]) {
@@ -171,7 +171,7 @@
}
}
_progress = 100.0;
self.progress = 100.0;
[self setDone];
}