Commit 14042025

This commit is contained in:
2025-04-15 11:37:10 +07:00
parent ca3fa0ed08
commit 257eb50640

View File

@@ -14,6 +14,7 @@ import javafx.stage.Stage;
import org.tinylog.Logger;
import java.io.IOException;
import java.util.Map;
import static Config.SomeCodes.ShowAlert;
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) {
SomeCodes.ExtractResource("/tinylog.properties");
launch();