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