}, ApplicationManager.getApplication());
<BUG>server.shutdownAsync();
}</BUG>
else {
<BUG>doStart(settings, consumer);

}
}
private void doStart(@NotNull final JstdServerSettings settings, @NotNull final CatchingConsumer<JstdServer, Exception> consumer) {
</BUG>
ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {

}, ApplicationManager.getApplication());
server.shutdownAsync();
return promise;
}
else {
doStart(settings, promise);
}
return promise;
}
@NotNull
private Promise<JstdServer> doStart(@NotNull final JstdServerSettings settings, @NotNull final AsyncPromise<JstdServer> promise) {
ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
