Commit 1439f85d by Johannes Edmeier

Start the registration task independent of wether it's the main context

...otherwise it won't play nice with the bootstrap context
parent 62c1ee44
/* /*
* Copyright 2014-2017 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -49,7 +49,7 @@ public class RegistrationApplicationListener { ...@@ -49,7 +49,7 @@ public class RegistrationApplicationListener {
@EventListener @EventListener
@Order(Ordered.LOWEST_PRECEDENCE) @Order(Ordered.LOWEST_PRECEDENCE)
public void onApplicationReady(ApplicationReadyEvent event) { public void onApplicationReady(ApplicationReadyEvent event) {
if (event.getApplicationContext().getParent() == null && autoRegister) { if (autoRegister) {
startRegisterTask(); startRegisterTask();
} }
} }
......
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