diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index fb89d96e..a339f35e 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -1581,7 +1581,8 @@ class BaresipService: Service() { private fun cleanService() { if (!isServiceClean) { - this.unregisterReceiver(bluetoothReceiver) + if (btAdapter != null) + this.unregisterReceiver(bluetoothReceiver) this.unregisterReceiver(hotSpotReceiver) stopRinging() stopMediaPlayer()