[Fix] Fixed RestfulStrolchComponent not starting
This commit is contained in:
parent
dc93800fd1
commit
4d7b3faf3f
|
@ -204,10 +204,7 @@ public class RestfulStrolchComponent extends StrolchComponent {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start() throws Exception {
|
public void start() throws Exception {
|
||||||
if (instance == null)
|
instance = this;
|
||||||
instance = this;
|
|
||||||
else if (instance != this)
|
|
||||||
throw new IllegalStateException("Instance is already set! This component is a singleton resource!");
|
|
||||||
super.start();
|
super.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue