Commit 14042025
This commit is contained in:
@@ -14,6 +14,7 @@ import javafx.stage.Stage;
|
|||||||
import org.tinylog.Logger;
|
import org.tinylog.Logger;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import static Config.SomeCodes.ShowAlert;
|
import static Config.SomeCodes.ShowAlert;
|
||||||
import static Config.SomeCodes.config;
|
import static Config.SomeCodes.config;
|
||||||
@@ -93,6 +94,18 @@ public class MainApplication extends Application {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stop() throws Exception {
|
||||||
|
Logger.info("Application stopped");
|
||||||
|
super.stop();
|
||||||
|
System.out.println("Checking running threads...");
|
||||||
|
Map<Thread, StackTraceElement[]> allThreads = Thread.getAllStackTraces();
|
||||||
|
for(Thread thread : allThreads.keySet()){
|
||||||
|
System.out.println("Thread: " + thread.getName()+", State: " + thread.getState()+", Daemon: " + thread.isDaemon());
|
||||||
|
//thread.interrupt();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SomeCodes.ExtractResource("/tinylog.properties");
|
SomeCodes.ExtractResource("/tinylog.properties");
|
||||||
launch();
|
launch();
|
||||||
|
|||||||
Reference in New Issue
Block a user