修复eventElapsedTime偶像的crash.reviewed by redding
Showing
1 changed file
with
4 additions
and
3 deletions
@@ -173,10 +173,11 @@ | @@ -173,10 +173,11 @@ | ||
173 | return 0; | 173 | return 0; |
174 | } | 174 | } |
175 | 175 | ||
176 | - double startTime = 0; | ||
177 | - @synchronized(self.timedEvents) { | 176 | + __block double startTime = 0; |
177 | + dispatch_sync(self.serialQueue, ^{ | ||
178 | startTime = [self.timedEvents[viewId] doubleValue]; | 178 | startTime = [self.timedEvents[viewId] doubleValue]; |
179 | - } | 179 | + }); |
180 | + | ||
180 | if (startTime <= 0) { | 181 | if (startTime <= 0) { |
181 | return 0; | 182 | return 0; |
182 | } else { | 183 | } else { |
-
Please register or login to post a comment