Skip to content

Commit

Permalink
Use thread-safe dictionary
Browse files Browse the repository at this point in the history
Hoping to address crash in #2990 (comment)
  • Loading branch information
n8henrie committed Dec 2, 2023
1 parent 2ac440c commit 032f410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quicksilver/Code-QuickStepCore/QSProcessMonitor.m
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ - (void)reloadProcesses {
#endif

NSArray *tempProcesses = [[NSWorkspace sharedWorkspace] runningApplications];
NSMutableDictionary *procs = [[NSMutableDictionary alloc] initWithCapacity:tempProcesses.count];
QSThreadSafeMutableDictionary *procs = [[QSThreadSafeMutableDictionary alloc] initWithCapacity:tempProcesses.count];
for (NSRunningApplication *app in tempProcesses) {
NSDictionary *info = [self infoForApp:app];
QSObject *procObject = [self imbuedFileProcessForDict:info];
Expand Down

0 comments on commit 032f410

Please sign in to comment.