diff --git a/org.adempiere.ui.zk/WEB-INF/src/fi/jawsy/jawwa/zk/atmosphere/AtmosphereServerPush.java b/org.adempiere.ui.zk/WEB-INF/src/fi/jawsy/jawwa/zk/atmosphere/AtmosphereServerPush.java index 1c6ab7cb94..4f38055916 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/fi/jawsy/jawwa/zk/atmosphere/AtmosphereServerPush.java +++ b/org.adempiere.ui.zk/WEB-INF/src/fi/jawsy/jawwa/zk/atmosphere/AtmosphereServerPush.java @@ -236,18 +236,11 @@ public class AtmosphereServerPush implements ServerPush { return; } - AtmosphereResource currentResource = this.resource.getAndSet(null); + this.resource.set(null); synchronized (schedules) { schedules.clear(); } - if (currentResource != null ) { - try { - currentResource.close(); - } catch (IOException e) { - } - } - if (Executions.getCurrent() != null) { if (log.isDebugEnabled()) log.debug("Stopping server push for " + desktop);