IDEMPIERE-729 Firefox becomes very slow randomly after working on zkwebui. Some improvement but still slow down over time with ever growing memory usage.
This commit is contained in:
parent
209abb49ee
commit
6cb2e6180b
|
@ -222,7 +222,7 @@ public class AtmosphereServerPush implements ServerPush {
|
||||||
boolean suspend = !desktopCtrl.scheduledServerPush();
|
boolean suspend = !desktopCtrl.scheduledServerPush();
|
||||||
if (suspend) {
|
if (suspend) {
|
||||||
if (!resource.isSuspended()) {
|
if (!resource.isSuspended()) {
|
||||||
resource.suspend(-1, true);
|
resource.suspend(-1, false);
|
||||||
}
|
}
|
||||||
this.resource.set(resource);
|
this.resource.set(resource);
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ public class ExportAction implements EventListener<Event>
|
||||||
exportFile();
|
exportFile();
|
||||||
else if (event.getName().equals(DialogEvents.ON_WINDOW_CLOSE)) {
|
else if (event.getName().equals(DialogEvents.ON_WINDOW_CLOSE)) {
|
||||||
panel.hideBusyMask();
|
panel.hideBusyMask();
|
||||||
panel.getComponent().invalidate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -247,7 +247,6 @@ public class FileImportAction implements EventListener<Event>
|
||||||
importFile();
|
importFile();
|
||||||
} else if (event.getName().equals(DialogEvents.ON_WINDOW_CLOSE)) {
|
} else if (event.getName().equals(DialogEvents.ON_WINDOW_CLOSE)) {
|
||||||
panel.hideBusyMask();
|
panel.hideBusyMask();
|
||||||
panel.getComponent().invalidate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
this.timeout = timeout;
|
this.timeout = timeout;
|
||||||
},
|
},
|
||||||
_schedule: function() {
|
_schedule: function() {
|
||||||
if (this.failures < 100) {
|
if (this.failures < 20) {
|
||||||
|
this._req = null;
|
||||||
setTimeout(this.proxy(this._send), this.delay);
|
setTimeout(this.proxy(this._send), this.delay);
|
||||||
} else {
|
} else {
|
||||||
this.stop();
|
this.stop();
|
||||||
|
|
Loading…
Reference in New Issue