소스 검색

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;
 }