Explorar el Código

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

Felix Paul Kühne hace 9 años
padre
commit
2416538ef7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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