Skip to content

Commit c0f05c6

Browse files
committed
显示退出p2p线程,防止推流设置delegate时候造成内存泄漏
Change-Id: I4b8f4e3c3af2a1297114bcff1527f8a02f48b1e4
1 parent cc1472b commit c0f05c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/LinkSDKDemo/Video/P2P/Controller/TIoTDemoVideoPushVC.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ -(void)viewWillDisappear:(BOOL)animated{
222222
[self recoverNavigationBar];
223223

224224
self.navigationController.navigationBar.tintColor = [UIColor blackColor];
225+
226+
[[TIoTCoreXP2PBridge sharedInstance] stopService:self.deviceName?:@""];
225227
}
226228

227229
- (void)viewDidAppear:(BOOL)animated {

0 commit comments

Comments
 (0)