adium 5576:76290dac1189: Handle a failed image download for Twit...

commits at adium.im commits at adium.im
Mon Jun 17 21:28:44 UTC 2013


details:	http://hg.adium.im/adium/rev/76290dac1189
revision:	5576:76290dac1189
branch:		adium-1.5.7
author:		Thijs Alkemade <me at thijsalkema.de>
date:		Mon Jun 17 23:27:08 2013 +0200

Handle a failed image download for Twitter on the right dispatch_queue.

diffs (14 lines):

diff -r 395f9e5b1109 -r 76290dac1189 Plugins/Twitter Plugin/AITwitterAccount.m
--- a/Plugins/Twitter Plugin/AITwitterAccount.m	Fri Jun 14 19:30:44 2013 +0200
+++ b/Plugins/Twitter Plugin/AITwitterAccount.m	Mon Jun 17 23:27:08 2013 +0200
@@ -1060,7 +1060,9 @@
 					[listContact setValue:url forProperty:TWITTER_PROPERTY_USER_ICON_URL afterDelay:NotifyNever];
 				});
 			} else {
-				[self requestFailed:AITwitterUserIconPull withError:error userInfo:@{ @"ListContact" : listContact }];
+				dispatch_async(dispatch_get_main_queue(), ^{
+					[self requestFailed:AITwitterUserIconPull withError:error userInfo:@{ @"ListContact" : listContact }];
+				});
 			}
 		});
 	}




More information about the commits mailing list