Skip to content

Commit e64ca41

Browse files
committed
1 parent 3a22ad2 commit e64ca41

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Xcode/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,13 @@ - (void)applicationWillEnterForeground:(UIApplication *)application
372372
DDLogVerbose(@"%@: %@", THIS_FILE, THIS_METHOD);
373373
}
374374

375+
- (void)applicationWillTerminate:(UIApplication *)application
376+
{
377+
DDLogVerbose(@"%@: %@", THIS_FILE, THIS_METHOD);
378+
379+
[self teardownStream];
380+
}
381+
375382
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
376383
#pragma mark XMPPStream Delegate
377384
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)