Skip to content

Commit a3197cc

Browse files
FIRStorage.callbackQueue fixes (#4281)
1 parent a63dab4 commit a3197cc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Firebase/Storage/FIRStorage.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ - (instancetype)copyWithZone:(NSZone *)zone {
170170
FIRStorage *storage = [[[self class] allocWithZone:zone] initWithApp:_app
171171
bucket:_storageBucket
172172
auth:_auth];
173-
storage.callbackQueue = _callbackQueue;
173+
storage.callbackQueue = self.callbackQueue;
174174
return storage;
175175
}
176176

@@ -195,7 +195,7 @@ - (BOOL)isEqualToFIRStorage:(FIRStorage *)storage {
195195
}
196196

197197
- (NSUInteger)hash {
198-
NSUInteger hash = [_app hash] ^ [_callbackQueue hash];
198+
NSUInteger hash = [_app hash] ^ [self.callbackQueue hash];
199199
return hash;
200200
}
201201

@@ -236,6 +236,10 @@ - (FIRStorageReference *)referenceWithPath:(NSString *)string {
236236
return reference;
237237
}
238238

239+
- (dispatch_queue_t)callbackQueue {
240+
return _fetcherServiceForApp.callbackQueue;
241+
}
242+
239243
- (void)setCallbackQueue:(dispatch_queue_t)callbackQueue {
240244
_fetcherServiceForApp.callbackQueue = callbackQueue;
241245
}

0 commit comments

Comments
 (0)