This commit is contained in:
@@ -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);
|
||||
nodes.forEach((k, v) -> {
|
||||
new HashSet<>(v).forEach(e -> {
|
||||
|
||||
@@ -85,7 +85,7 @@ public abstract class WebSocketServlet extends HttpServlet implements Resourcabl
|
||||
}
|
||||
|
||||
public final void postDestroy(HttpContext context, AnyValue conf) {
|
||||
this.node.destroy(conf);
|
||||
this.node.postDestroy(conf);
|
||||
super.destroy(context, conf);
|
||||
engine.close();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ public class WebSocketNodeService extends WebSocketNode implements Service {
|
||||
|
||||
@Override
|
||||
public void destroy(AnyValue conf) {
|
||||
super.destroy(conf);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user