mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix this autobug:
https://console.firebase.google.com/u/0/project/meshutil/crashlytics/app/android:com.geeksville.mesh/issues/9ca00f8a87bb62f10c78009f450b13b8
This commit is contained in:
parent
03a8ff67e5
commit
2ba398cc51
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue