Browse Source

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

Felix Paul Kühne 9 years ago
parent
commit
2416538ef7
1 changed files with 1 additions and 1 deletions
  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