Skip to content

Commit

Permalink
MUXPool.send may block if no connected MUXes
Browse files Browse the repository at this point in the history
fixes #487
  • Loading branch information
ar committed Jun 8, 2022
1 parent 8eea34d commit 866254a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpos/src/main/java/org/jpos/q2/iso/MUXPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public ISOMsg request (ISOMsg m, long timeout) throws ISOException {
}

public void send (ISOMsg m) throws ISOException, IOException {
long maxWait = 1000L; // reasonable default
long maxWait = System.currentTimeMillis() + 1000L; // reasonable default
MUX mux = getMUX(m,maxWait);

if (mux == null)
Expand Down

0 comments on commit 866254a

Please sign in to comment.