sforkowany z mirror/meshtastic-android
fix this autobug:
https://console.firebase.google.com/u/0/project/meshutil/crashlytics/app/android:com.geeksville.mesh/issues/9ca00f8a87bb62f10c78009f450b13b81.2-legacy
rodzic
03a8ff67e5
commit
2ba398cc51
|
@ -180,8 +180,11 @@ class RadioInterfaceService : Service(), Logging {
|
|||
// Force the service to reconnect
|
||||
val s = runningService
|
||||
if (s != null) {
|
||||
info("shutting down old service")
|
||||
s.setEnabled(false) // nasty, needed to force the next setEnabled call to reconnect
|
||||
// Ignore any errors that happen while closing old device
|
||||
exceptionReporter {
|
||||
info("shutting down old service")
|
||||
s.setEnabled(false) // nasty, needed to force the next setEnabled call to reconnect
|
||||
}
|
||||
info("Setting enable on the running radio service")
|
||||
s.setEnabled(addr != null)
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue