Skip to content

Commit

Permalink
close the client connection before quitting the server
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1504 authored Mar 13, 2021
1 parent 6b96a25 commit 62aaf0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [14.x]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![NPM version](https://img.shields.io/npm/v/minecraft-chunk-dumper.svg)](http://npmjs.com/package/minecraft-chunk-dumper)
[![Build Status](https://github.com/PrismarineJS/minecraft-chunk-dumper/workflows/CI/badge.svg)](https://github.com/PrismarineJS/minecraft-chunk-dumper/actions?query=workflow%3A%22CI%22)

Dumps chunks for minecraft versions 1.7 to 1.15
Dumps chunks for minecraft versions 1.7 to 1.15



## Install
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class ChunkDumper extends EventEmitter {
}

async stop () {
this.client.end()
debug('stopping server')
await this.server.stopServerAsync()
debug('deleting data')
Expand Down

0 comments on commit 62aaf0e

Please sign in to comment.