cleanly kill job if we get an exception during firmware update

pull/266/head
Kevin Hester 2021-03-20 18:47:12 +08:00
rodzic c9d18b00a4
commit 278d82e99a
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -1624,8 +1624,10 @@ class MeshService : Service(), Logging {
} else {
debug("Creating firmware update coroutine")
updateJob = serviceScope.handledLaunch {
debug("Starting firmware update coroutine")
SoftwareUpdateService.doUpdate(this@MeshService, safe, filename)
exceptionReporter {
debug("Starting firmware update coroutine")
SoftwareUpdateService.doUpdate(this@MeshService, safe, filename)
}
}
}
}