try to prevent double-service bug

smart_log
Georg Lukas 2011-09-05 15:29:04 +02:00
rodzic 81cf26c68a
commit 5438e10009
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -144,15 +144,15 @@ class AprsService extends Service with LocationListener {
}
override def onDestroy() {
locMan.removeUpdates(this);
running = false
// catch FC when service is killed from outside
if (poster != null) {
poster.stop()
showToast(getString(R.string.service_stop))
}
locMan.removeUpdates(this);
unregisterReceiver(msgNotifier)
ServiceNotifier.instance.stop(this)
running = false
}
def getGpsInterval() : Int = {