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()
}
}
log.warn { "Watcher stopped!!!" }
if (!isStopping) {
ioCoroutine.launch {
watchFiles()
watcherChannel.invokeOnClose {
log.warn { "Watcher stopped!!!" }
if (!isStopping) {
ioCoroutine.launch {
watchFiles()
}
}
}
}