Don't start forever loop or reseed timer in plugin

This commit is contained in:
zzz
2022-01-12 07:56:28 -05:00
parent c3ad937523
commit bef498cafe

View File

@ -85,7 +85,9 @@ public class Main {
} }
launchForeverLoop(); // not for plugin
if (System.getProperty(ConfigurationManager.PROP_CONF_DIR) == null)
launchForeverLoop();
try { try {
startUp(); startUp();
} catch (Exception e) { } catch (Exception e) {
@ -94,9 +96,12 @@ public class Main {
// not for plugin
if (System.getProperty(ConfigurationManager.PROP_CONF_DIR) == null) {
// Start running periodic task after 2 minutes, run periodically every 10th minute. // Start running periodic task after 2 minutes, run periodically every 10th minute.
reseedMonitor = new Timer(); reseedMonitor = new Timer();
reseedMonitor.scheduleAtFixedRate(new ReseedMonitor(), 2*60*1000, 10*60*1000); reseedMonitor.scheduleAtFixedRate(new ReseedMonitor(), 2*60*1000, 10*60*1000);
}
//testStuff(); // Delete Me //testStuff(); // Delete Me
} }
@ -130,7 +135,7 @@ public class Main {
} }
} }
}; };
Thread t = new Thread(r); Thread t = new Thread(r, "IToopie-LFL");
t.setDaemon(false); t.setDaemon(false);
t.start(); t.start();
} }