mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-04 23:16:10 +00:00
Fix leak of UIComputerViews that poll forever
This commit is contained in:
@@ -183,7 +183,11 @@ static const int LABEL_DY = 20;
|
||||
|
||||
- (void) updateLoop {
|
||||
[self updateContentsForHost:_host];
|
||||
[self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
||||
|
||||
// Stop updating when we detach from our parent view
|
||||
if (self.superview != nil) {
|
||||
[self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) hostLongClicked:(UILongPressGestureRecognizer*)gesture {
|
||||
|
||||
Reference in New Issue
Block a user