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);
|
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 -> {
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user