One more try to fix deadlock in concourse test cases

This commit is contained in:
Kris De Volder
2022-08-10 16:15:36 -07:00
parent d532b8448f
commit 1515345659

View File

@@ -630,7 +630,7 @@ public final class SimpleLanguageServer implements Sts4LanguageServer, LanguageC
// in long "hangs" for slow reconcile providers
Mono<?> mono = props.getReconcileDelay() > 0
? Mono.delay(Duration.ofMillis(props.getReconcileDelay())).publishOn(RECONCILER_SCHEDULER)
: Mono.empty().publishOn(RECONCILER_SCHEDULER);
: Mono.empty().subscribeOn(RECONCILER_SCHEDULER);
mono.then(Mono.fromRunnable(() -> {
reconcileRequests.remove(uri);