Authored by 戴强

修复eventElapsedTime偶像的crash.reviewed by redding

@@ -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 {