Update socket_io_provider.ts
This commit is contained in:
parent
002709e8e3
commit
89498d43d6
|
|
@ -197,6 +197,14 @@ export class WebSocketIo {
|
|||
userOpenCLI: userName,
|
||||
})
|
||||
}
|
||||
if (line.config?.status !== 'connected')
|
||||
await this.handleLineOperation(
|
||||
io,
|
||||
stationId,
|
||||
[lineId],
|
||||
async (lineCon) => lineCon.writeCommand('\r\n', userName),
|
||||
{ command: '\r\n', timeout: 120000 }
|
||||
)
|
||||
} else {
|
||||
if (this.lineConnecting.includes(lineId)) return
|
||||
const linesData = await Line.findBy('id', lineId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue