Do not crash on LinphoneManager destroy if service is not started.

This commit is contained in:
Guillaume Beraudo 2014-02-03 15:56:46 +01:00
parent 14b87f09a6
commit 12a0590a71

View file

@ -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 {