mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-25 16:51:59 +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);
|
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, () -> requestGitHubData(true), 20L);
|
||||||
} else {
|
} else {
|
||||||
// Set connection interval to be at least 15 minutes.
|
// 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);
|
plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, () -> requestGitHubData(true), 20L, connectionInterval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user