mirror of https://github.com/zlatinb/muwire
prevent Cli from hanging if there are no shared files
parent
5269815329
commit
af6275d0a3
|
@ -62,7 +62,9 @@ class PersisterService extends Service {
|
|||
} catch (IllegalArgumentException|NumberFormatException e) {
|
||||
log.log(Level.WARNING, "couldn't load files",e)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
listener.publish(new AllFilesLoadedEvent())
|
||||
}
|
||||
timer.schedule({persistFiles()} as TimerTask, 0, interval)
|
||||
loaded = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue