Skip to content

Commit

Permalink
fix: close connections before stopping server
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Sep 12, 2024
1 parent 179840d commit c66759b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/endpoint/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class Server {
*/
async stop (options?: { timeout: number }): Promise<void> {
if (this.server != null) {
this.server.listener.closeAllConnections()
await this.server.stop(options)
}

Expand Down

0 comments on commit c66759b

Please sign in to comment.