UOCL-285: payment screen hanging

This commit is contained in:
2025-01-06 12:28:44 +00:00
parent a038cc2282
commit ec9a49ade3
5 changed files with 25 additions and 5 deletions
@@ -37,6 +37,8 @@ import lombok.extern.slf4j.Slf4j;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.swing.*;
/**
@@ -78,6 +80,7 @@ public class JTicketsBagShared extends JTicketsBag {
log.debug("Loading Sales screen! "+this.getClass());
ExecutorService customExecutor = Executors.newCachedThreadPool();
SwingWorker<String, String> reloadLayaway = new SwingWorker<>() {
@Override
protected String doInBackground() throws Exception {
@@ -91,7 +94,8 @@ public class JTicketsBagShared extends JTicketsBag {
}
};
reloadLayaway.execute();
//reloadLayaway.execute();
customExecutor.submit(reloadLayaway);
m_sCurrentTicket = null;