Explorar el Código

bugfix: initialize lock

ibireme hace 9 años
padre
commit
b7764e8bb9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      YYWebImage/YYWebImageOperation.m

+ 1 - 0
YYWebImage/YYWebImageOperation.m

@@ -266,6 +266,7 @@ static void URLInBlackListAdd(NSURL *url) {
     _finished = NO;
     _cancelled = NO;
     _taskID = UIBackgroundTaskInvalid;
+    _lock = [NSRecursiveLock new];
     return self;
 }