浏览代码

bugfix: initialize lock

ibireme 9 年之前
父节点
当前提交
b7764e8bb9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 }