Revert "Revert "UOCL-285: payment screen hanging (#42)""

This reverts commit acc38ba567.
This commit is contained in:
2025-03-28 11:16:28 +00:00
parent acc38ba567
commit a23260f982
9 changed files with 62 additions and 26 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;