瀏覽代碼

local network: don't modify the UI from a background thread

Felix Paul Kühne 9 年之前
父節點
當前提交
2416538ef7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/LocalNetworkConnectivity/VLCNetworkListCell.m

+ 1 - 1
Sources/LocalNetworkConnectivity/VLCNetworkListCell.m

@@ -89,7 +89,7 @@
     if (!imageData)
         return;
     UIImage* image = [[UIImage alloc] initWithData:imageData];
-    [self setIcon:image];
+    [self performSelectorOnMainThread:@selector(setIcon:) withObject:image waitUntilDone:NO];
 }
 
 - (void)setIsDownloadable:(BOOL)isDownloadable