This commit is contained in:
Redkale
2017-05-02 08:08:25 +08:00
parent f9f2e080da
commit f587e13bdc
3 changed files with 2 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ public abstract class WebSocketNode {
} }
public void destroy(AnyValue conf) { public final void postDestroy(AnyValue conf) {
HashMap<Serializable, Set<String>> nodes = new HashMap<>(localNodes); HashMap<Serializable, Set<String>> nodes = new HashMap<>(localNodes);
nodes.forEach((k, v) -> { nodes.forEach((k, v) -> {
new HashSet<>(v).forEach(e -> { new HashSet<>(v).forEach(e -> {

View File

@@ -85,7 +85,7 @@ public abstract class WebSocketServlet extends HttpServlet implements Resourcabl
} }
public final void postDestroy(HttpContext context, AnyValue conf) { public final void postDestroy(HttpContext context, AnyValue conf) {
this.node.destroy(conf); this.node.postDestroy(conf);
super.destroy(context, conf); super.destroy(context, conf);
engine.close(); engine.close();
} }

View File

@@ -30,7 +30,6 @@ public class WebSocketNodeService extends WebSocketNode implements Service {
@Override @Override
public void destroy(AnyValue conf) { public void destroy(AnyValue conf) {
super.destroy(conf);
} }
@Override @Override