This commit is contained in:
ajgeiss0702
2020-08-09 07:21:34 -07:00
parent 31ede511a3
commit b15bea7bb1
+7 -7
View File
@@ -56,8 +56,8 @@ public class Manager {
} }
/** /**
* Returns the name of all servers * Returns the name of all servers and groups
* @return The names of all servers * @return The names of all servers and groups
*/ */
public List<String> getServerNames() { public List<String> getServerNames() {
List<String> names = new ArrayList<>(); List<String> names = new ArrayList<>();
@@ -79,24 +79,24 @@ public class Manager {
*/ */
public void reloadIntervals() { public void reloadIntervals() {
if(sendId != -1) { if(sendId != -1) {
sendId = -1;
pl.getProxy().getScheduler().cancel(sendId); pl.getProxy().getScheduler().cancel(sendId);
sendId = -1;
} }
if(updateId != -1) { if(updateId != -1) {
updateId = -1;
pl.getProxy().getScheduler().cancel(updateId); pl.getProxy().getScheduler().cancel(updateId);
updateId = -1;
} }
if(messagerId != -1) { if(messagerId != -1) {
messagerId = -1;
pl.getProxy().getScheduler().cancel(messagerId); pl.getProxy().getScheduler().cancel(messagerId);
messagerId = -1;
} }
if(actionbarId != -1) { if(actionbarId != -1) {
actionbarId = -1;
pl.getProxy().getScheduler().cancel(actionbarId); pl.getProxy().getScheduler().cancel(actionbarId);
actionbarId = -1;
} }
if(srvRefId != -1) { if(srvRefId != -1) {
srvRefId = -1;
pl.getProxy().getScheduler().cancel(srvRefId); pl.getProxy().getScheduler().cancel(srvRefId);
srvRefId = -1;
} }
sendId = pl.getProxy().getScheduler().schedule(pl, new Runnable() { sendId = pl.getProxy().getScheduler().schedule(pl, new Runnable() {