mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Do not crash on LinphoneManager destroy if service is not started.
This commit is contained in:
parent
9541d524d1
commit
094fbc34c2
1 changed files with 2 additions and 1 deletions
|
|
@ -746,7 +746,8 @@ public class LinphoneManager implements LinphoneCoreListener {
|
|||
|
||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
||||
private void doDestroy() {
|
||||
ChatStorage.getInstance().close();
|
||||
if (LinphoneService.isReady()) // indeed, no need to crash
|
||||
ChatStorage.getInstance().close();
|
||||
|
||||
try {
|
||||
mServiceContext.unregisterReceiver(bluetoothReiceiver);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue