Commit 8ad15399 by Bertrand Renuart

React on ContextClosedEvent only if originating from "our" context (not another like a child)

parent 8e11514e
......@@ -122,8 +122,9 @@ public class EurekaAutoServiceRegistration implements AutoServiceRegistration, S
@EventListener(ContextClosedEvent.class)
public void onApplicationEvent(ContextClosedEvent event) {
// register in case meta data changed
stop();
if( event.getApplicationContext() == context ) {
stop();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment