From b4da0b2fefee4634ec01319de04085a7edd312a9 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Fri, 13 May 2022 15:15:37 +0200 Subject: [PATCH] Changed number of threads in executerservice to one to prevent false order to save file --- .../ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java index ddc4873..ec75d5b 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java @@ -27,7 +27,7 @@ public class TournamentDecorator implements IsObservable{ } } }); - executorService = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); + executorService = Executors.newFixedThreadPool(1); } public void setFactoryDecorator(FactoryDecorator factoryDecorator) {