File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ - (void)setOperationClass:(Class)operationClass {
138
138
if (!sself) return ;
139
139
__block NSArray *callbacksForURL;
140
140
dispatch_sync (sself.barrierQueue , ^{
141
- callbacksForURL = sself.URLCallbacks [url];
141
+ callbacksForURL = [ sself.URLCallbacks[url] copy ];
142
142
});
143
143
for (NSDictionary *callbacks in callbacksForURL) {
144
144
SDWebImageDownloaderProgressBlock callback = callbacks[kProgressCallbackKey ];
@@ -150,7 +150,7 @@ - (void)setOperationClass:(Class)operationClass {
150
150
if (!sself) return ;
151
151
__block NSArray *callbacksForURL;
152
152
dispatch_barrier_sync (sself.barrierQueue , ^{
153
- callbacksForURL = sself.URLCallbacks [url];
153
+ callbacksForURL = [ sself.URLCallbacks[url] copy ];
154
154
if (finished) {
155
155
[sself.URLCallbacks removeObjectForKey: url];
156
156
}
You can’t perform that action at this time.
0 commit comments