do not retry downloads if core is shut(ting) down

This commit is contained in:
Zlatin Balevsky
2019-06-20 13:40:04 +01:00
parent 948b6292fe
commit 089ab4f0d9
2 changed files with 3 additions and 1 deletions

View File

@@ -137,6 +137,8 @@ class MainFrameModel {
core.eventBus.register(FileUnsharedEvent.class, this)
timer.schedule({
if (core.shutdown.get())
return
int retryInterval = core.muOptions.downloadRetryInterval
if (retryInterval > 0) {
retryInterval *= 60000