[Fix] Fixed RestfulStrolchComponent not starting

This commit is contained in:
Robert von Burg 2024-04-23 15:30:59 +02:00
parent dc93800fd1
commit 4d7b3faf3f
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 4 deletions

View File

@ -204,10 +204,7 @@ public class RestfulStrolchComponent extends StrolchComponent {
@Override
public void start() throws Exception {
if (instance == null)
instance = this;
else if (instance != this)
throw new IllegalStateException("Instance is already set! This component is a singleton resource!");
instance = this;
super.start();
}