Merge pull request #265 from h3poteto/fix/stop_signal

Fix stop signal of websocket in misskey
This commit is contained in:
AkiraFukushima 2020-03-18 00:08:56 +09:00 committed by GitHub
commit 21aaf7d71f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ export default class WebSocket extends EventEmitter implements WebSocketInterfac
*/
private _resetConnection() {
if (this._client) {
this._client.close(100)
this._client.close(1000)
this._client.removeAllListeners()
this._client = null
}