@Override public void onExit() { running = false; if (thread != null && thread.isSleeping()) thread.interrupt(); thread = null; logger.info("JDFeedMe has exited"); }
public static void syncNowEvent() { if (thread != null && thread.isSleeping()) thread.interrupt(); }