mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Only cleanup the stream on termination
This commit is contained in:
@@ -105,6 +105,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)willMoveToParentViewController:(UIViewController *)parent {
|
- (void)willMoveToParentViewController:(UIViewController *)parent {
|
||||||
|
// Only cleanup when we're being destroyed
|
||||||
|
if (parent == nil) {
|
||||||
[_controllerSupport cleanup];
|
[_controllerSupport cleanup];
|
||||||
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
[UIApplication sharedApplication].idleTimerDisabled = NO;
|
||||||
[_streamMan stopStream];
|
[_streamMan stopStream];
|
||||||
@@ -114,6 +116,7 @@
|
|||||||
}
|
}
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void) returnToMainFrame {
|
- (void) returnToMainFrame {
|
||||||
[self.navigationController popToRootViewControllerAnimated:YES];
|
[self.navigationController popToRootViewControllerAnimated:YES];
|
||||||
|
|||||||
Reference in New Issue
Block a user