File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Parse/Internal/LocalDataStore/SQLite Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,13 @@ - (instancetype)initWithPath:(NSString *)path {
6969 _databaseClosedTaskCompletionSource = [[BFTaskCompletionSource alloc ] init ];
7070 _databasePath = [path copy ];
7171
72- _databaseQueue = PFThreadsafetyCreateQueueForObject (self);
72+ dispatch_queue_t queue = PFThreadsafetyCreateQueueForObject (self);
73+ _databaseQueue = queue;
7374 _databaseExecutor = [BFExecutor executorWithBlock: ^(dispatch_block_t block) {
7475 // Execute asynchrounously on the proper queue.
7576 // Seems a bit backwards, but we don't have PFThreadsafetySafeDispatchAsync.
7677 dispatch_async (dispatch_get_global_queue (0 , 0 ), ^{
77- PFThreadsafetySafeDispatchSync (_databaseQueue , block);
78+ PFThreadsafetySafeDispatchSync (queue , block);
7879 });
7980 }];
8081
You can’t perform that action at this time.
0 commit comments