adium 4342:4a411acf8c34: Its possible two logs will be rendered ...

commits at adium.im commits at adium.im
Fri Dec 2 22:53:27 UTC 2011


details:	http://hg.adium.im/adium/rev/4a411acf8c34
revision:	4342:4a411acf8c34
branch:		(none)
author:		Stephen Holt <sholt at adium.im>
date:		Fri Dec 02 14:53:09 2011 -0800

Its possible two logs will be rendered at the same time. This causes errors. Making our op queue serial seems to fix the log name color errors. Fixes #15574.

diffs (11 lines):

diff -r e3f4492a25db -r 4a411acf8c34 Source/AILogViewerWindowController.m
--- a/Source/AILogViewerWindowController.m	Fri Dec 02 15:18:23 2011 +0100
+++ b/Source/AILogViewerWindowController.m	Fri Dec 02 14:53:09 2011 -0800
@@ -137,6 +137,7 @@
 	static dispatch_once_t onceToken;
 	dispatch_once(&onceToken, ^{
 		logViewerQueue = [[NSOperationQueue alloc] init];
+		[logViewerQueue setMaxConcurrentOperationCount:1];
 		if([logViewerQueue respondsToSelector:@selector(setName:)])
 			[logViewerQueue performSelector:@selector(setName:) withObject:@"im.adium.AILogViewerWindowController.logViewerQueue"];
 	});




More information about the commits mailing list