mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Fixed GitHub data gathering still using lowest connection interval value
Fixes commit a3a50c1961
This commit is contained in:
parent
fb87d0940f
commit
d42d0118d7
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user