Improve dashboard
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user