Fix service restart

This commit is contained in:
世界 committed 2023-11-05 17:07:53 +08:00
1 parent 446ffa4a4d
commit fe5c4b5268
2 files changed
+10 -6

No files matched your search

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