Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Experimental change to see if it improves #2114 (crashes in server pr…
- Loading branch information
Showing
with
6 additions
and
2 deletions.
-
+6
−2
Source/SPProcessListController.m
|
@@ -627,7 +627,7 @@ - (void)_getDatabaseProcessListInBackground:(id)object; |
|
|
|
|
|
[processList setReturnDataAsStrings:YES]; |
|
|
|
|
|
[processes removeAllObjects]; |
|
|
[[processes onMainThread] removeAllObjects]; |
|
|
|
|
|
for (i = 0; i < [processList numberOfRows]; i++) |
|
|
{ |
|
@@ -650,7 +650,11 @@ - (void)_getDatabaseProcessListInBackground:(id)object; |
|
|
[rowsFixed setObject:num forKey:@"Time"]; |
|
|
} |
|
|
|
|
|
[processes addObject:[[rowsFixed copy] autorelease]]; |
|
|
// This is pretty bad from a performance standpoint, but we must not |
|
|
// interfere with the NSTableView's reload cycle and there is no way |
|
|
// to know when it starts/ends. We only know it will happen on the |
|
|
// main thread, so we have to interlock with that. |
|
|
[[processes onMainThread] addObject:[[rowsFixed copy] autorelease]]; |
|
|
[rowsFixed release]; |
|
|
} |
|
|
|
|
|