Improve dashboard

This commit is contained in:
世界 committed 2023-07-17 14:02:07 +08:00
1 parent 948312e9e4
commit 0ca5e1c648
4 files changed
+383 -75

No files matched your search

@@ -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()