Improved LinphoneManager destroy method
This commit is contained in:
parent
053ada2833
commit
4a8c391e00
1 changed files with 4 additions and 6 deletions
|
@ -423,13 +423,11 @@ public class LinphoneManager implements SensorEventListener {
|
|||
if (mMediaScanner != null) mMediaScanner.destroy();
|
||||
if (mAudioManager != null) mAudioManager.destroy();
|
||||
|
||||
try {
|
||||
mTimer.cancel();
|
||||
if (mAutoAnswerTimer != null) mAutoAnswerTimer.cancel();
|
||||
if (mTimer != null) mTimer.cancel();
|
||||
if (mAutoAnswerTimer != null) mAutoAnswerTimer.cancel();
|
||||
|
||||
if (mCore != null) {
|
||||
destroyCore();
|
||||
} catch (RuntimeException e) {
|
||||
Log.e("[Manager] Destroy Core Runtime Exception: " + e);
|
||||
} finally {
|
||||
mCore = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue