Fixed GitHub data gathering still using lowest connection interval value

Fixes commit a3a50c1961
This commit is contained in:
Florian CUNY 2019-05-08 14:59:59 +02:00
parent fb87d0940f
commit d42d0118d7

View File

@ -41,7 +41,7 @@ public class WebManager {
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, () -> requestGitHubData(true), 20L);
} else {
// Set connection interval to be at least 15 minutes.
connectionInterval = Math.min(connectionInterval, 15 * 20 * 60L);
connectionInterval = Math.max(connectionInterval, 15 * 20 * 60L);
plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, () -> requestGitHubData(true), 20L, connectionInterval);
}
}