mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
When Vert.x is closed return a context less future
This commit is contained in:
@@ -652,7 +652,8 @@ public class VertxImpl implements VertxInternal, MetricsProvider {
|
||||
closed = this.closed;
|
||||
}
|
||||
if (closed) {
|
||||
return getOrCreateContext().failedFuture("Vert.x closed");
|
||||
// If we are closed use a context less future
|
||||
return Future.failedFuture("Vert.x closed");
|
||||
} else {
|
||||
return deploymentManager.deployVerticle(verticleSupplier, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user