IDEMPIERE-4154 ServerPush Adjustments. Incorporate suggestion from Martin Schönbeck.
This commit is contained in:
parent
46c60f34b8
commit
26f18f9c22
|
@ -192,9 +192,11 @@ public class AtmosphereServerPush implements ServerPush {
|
||||||
}
|
}
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
for(int i = 0; i < 3 && !ok; i++) {
|
for(int i = 0; i < 3 && !ok; i++) {
|
||||||
try {
|
for (int ii = 0; ii < 10 && schedules.size() > 0; ii++) {
|
||||||
Thread.sleep(500);
|
try {
|
||||||
} catch (InterruptedException e1) {}
|
Thread.sleep(50);
|
||||||
|
} catch (InterruptedException e1) {}
|
||||||
|
}
|
||||||
if (schedules.size() > 0) {
|
if (schedules.size() > 0) {
|
||||||
try {
|
try {
|
||||||
ok = commitResponse();
|
ok = commitResponse();
|
||||||
|
|
Loading…
Reference in New Issue