Revert "Revert "UOCL-285: payment screen hanging (#42)""
This reverts commit acc38ba567.
This commit is contained in:
@@ -43,6 +43,8 @@ import java.sql.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
/**
|
||||
@@ -2721,6 +2723,7 @@ public final class Transfer extends JPanel implements JPanelView {
|
||||
JOptionPane.YES_NO_OPTION,
|
||||
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
|
||||
|
||||
ExecutorService customExecutor = Executors.newCachedThreadPool();
|
||||
SwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {
|
||||
|
||||
@Override
|
||||
@@ -2731,7 +2734,8 @@ public final class Transfer extends JPanel implements JPanelView {
|
||||
}
|
||||
};
|
||||
|
||||
worker.execute();
|
||||
//worker.execute();
|
||||
customExecutor.submit(worker);
|
||||
|
||||
}
|
||||
System.gc();
|
||||
|
||||
Reference in New Issue
Block a user