diff --git a/src/AprsService.scala b/src/AprsService.scala index 628e9de..1fb8742 100644 --- a/src/AprsService.scala +++ b/src/AprsService.scala @@ -218,7 +218,9 @@ class AprsService extends Service { } msgService.stop() locSource.stop() - unregisterReceiver(msgNotifier) + scala.util.control.Exception.ignoring(classOf[IllegalArgumentException]) { + unregisterReceiver(msgNotifier) + } ServiceNotifier.instance.stop(this) }