Improve dashboard

This commit is contained in:
世界
2023-07-17 13:08:01 +08:00
parent 948312e9e4
commit 0ca5e1c648
4 changed files with 383 additions and 75 deletions

View File

@@ -133,7 +133,7 @@ class BoxService(
newService.start()
boxService = newService
commandServer?.setService(boxService)
status.postValue(Status.Started)
} catch (e: Exception) {
stopAndAlert(Alert.StartService, e.message)
@@ -148,6 +148,7 @@ class BoxService(
pfd.close()
fileDescriptor = null
}
commandServer?.setService(null)
boxService?.apply {
runCatching {
close()
@@ -175,6 +176,7 @@ class BoxService(
pfd.close()
fileDescriptor = null
}
commandServer?.setService(null)
boxService?.apply {
runCatching {
close()