IDEMPIERE-4625 Login Page refresh cause error message, randomly when slow db response (#506)
Fix wrong stop server push flow.
This commit is contained in:
parent
248612e24d
commit
bbb4c48b67
|
@ -236,18 +236,11 @@ public class AtmosphereServerPush implements ServerPush {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AtmosphereResource currentResource = this.resource.getAndSet(null);
|
this.resource.set(null);
|
||||||
synchronized (schedules) {
|
synchronized (schedules) {
|
||||||
schedules.clear();
|
schedules.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentResource != null ) {
|
|
||||||
try {
|
|
||||||
currentResource.close();
|
|
||||||
} catch (IOException e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Executions.getCurrent() != null) {
|
if (Executions.getCurrent() != null) {
|
||||||
if (log.isDebugEnabled())
|
if (log.isDebugEnabled())
|
||||||
log.debug("Stopping server push for " + desktop);
|
log.debug("Stopping server push for " + desktop);
|
||||||
|
|
Loading…
Reference in New Issue