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,6 +746,7 @@ public class LinphoneManager implements LinphoneCoreListener {
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
||||||
private void doDestroy() {
|
private void doDestroy() {
|
||||||
|
if (LinphoneService.isReady()) // indeed, no need to crash
|
||||||
ChatStorage.getInstance().close();
|
ChatStorage.getInstance().close();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue