make SafeBluetooth Closable

This commit is contained in:
geeksville 2020-02-24 15:34:17 -08:00
parent e25e9a658d
commit 7ed5a3efac
3 changed files with 9 additions and 4 deletions

View file

@ -310,7 +310,7 @@ class RadioInterfaceService : Service(), Logging {
info("Destroying radio interface service")
if (logSends)
sentPacketsLog.close()
safe?.disconnect()
safe?.close()
super.onDestroy()
}