Fix service restart
This commit is contained in:
@@ -156,7 +156,7 @@ class BoxService(
|
||||
}
|
||||
|
||||
if (delayStart) {
|
||||
delay(200L)
|
||||
delay(1000L)
|
||||
}
|
||||
|
||||
newService.start()
|
||||
@@ -171,7 +171,7 @@ class BoxService(
|
||||
|
||||
override fun serviceReload() {
|
||||
status.postValue(Status.Starting)
|
||||
GlobalScope.launch(Dispatchers.IO) {
|
||||
runBlocking {
|
||||
val pfd = fileDescriptor
|
||||
if (pfd != null) {
|
||||
pfd.close()
|
||||
|
||||
Reference in New Issue
Block a user