mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-16 21:50:57 +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 {
|
- (void) updateLoop {
|
||||||
[self updateContentsForHost:_host];
|
[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 {
|
- (void) hostLongClicked:(UILongPressGestureRecognizer*)gesture {
|
||||||
|
|||||||
Reference in New Issue
Block a user