Update line_connection.ts

This commit is contained in:
nguyentrungthat 2025-12-04 10:07:27 +07:00
parent 8ddccf6586
commit da8c0f418b
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ export default class LineConnection {
async writeCommand(cmd: string | Buffer<ArrayBuffer>, userName = '') { async writeCommand(cmd: string | Buffer<ArrayBuffer>, userName = '') {
if (this.client.destroyed) { if (this.client.destroyed) {
console.log(`⚠️ Cannot send, line ${this.config.lineNumber} is closed`) console.log(`⚠️ Cannot send, line ${this.config.lineNumber} is closed`)
this.disconnect()
// this.disconnect() // this.disconnect()
// await sleep(2000) // await sleep(2000)
// await this.connect() // await this.connect()