From 98cf1ff7ba0145247d4bcd21504b45e731e2f8c5 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Wed, 24 Nov 2021 15:20:18 -0800 Subject: [PATCH] [shell] Fix darwin deadlock with 'server start' command. --- src/platform/Darwin/KeyValueStoreManagerImpl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/Darwin/KeyValueStoreManagerImpl.mm b/src/platform/Darwin/KeyValueStoreManagerImpl.mm index 8d0476259f2523..22756b48be7495 100644 --- a/src/platform/Darwin/KeyValueStoreManagerImpl.mm +++ b/src/platform/Darwin/KeyValueStoreManagerImpl.mm @@ -184,7 +184,7 @@ - (instancetype)initWithContext:(nonnull NSManagedObjectContext *)context } // create Managed Object context - gContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSMainQueueConcurrencyType]; + gContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType]; [gContext setPersistentStoreCoordinator:coordinator]; return CHIP_NO_ERROR;