disconnect even if not connected.

This commit is contained in:
Miroslav Šedivý 2021-07-30 22:54:35 +02:00
parent 0554b69d82
commit 8c7030470d

View File

@ -285,10 +285,6 @@
}
public disconnect() {
if (!this.connected) {
throw new Error('client is not connected')
}
this.connection.close()
}