Do not crash on LinphoneManager destroy if service is not started.
This commit is contained in:
parent
14b87f09a6
commit
12a0590a71
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…
Reference in a new issue