diff --git a/src/endpoint/server.ts b/src/endpoint/server.ts index 56e2539f..6f857355 100644 --- a/src/endpoint/server.ts +++ b/src/endpoint/server.ts @@ -52,6 +52,7 @@ class Server { */ async stop (options?: { timeout: number }): Promise { if (this.server != null) { + this.server.listener.closeAllConnections() await this.server.stop(options) }