This commit is contained in:
bskjon 2024-07-20 01:23:26 +02:00
parent 0aee64c7f3
commit 861dcd00d8

View File

@ -74,10 +74,12 @@ class InputDirectoryWatcher(@Autowired var coordinator: Coordinator): FileWatche
e.printStackTrace() e.printStackTrace()
} }
} }
log.warn { "Watcher stopped!!!" } watcherChannel.invokeOnClose {
if (!isStopping) { log.warn { "Watcher stopped!!!" }
ioCoroutine.launch { if (!isStopping) {
watchFiles() ioCoroutine.launch {
watchFiles()
}
} }
} }
} }