-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The error listener is added twice.
here
scc-broker-client/client-pool.js
Lines 46 to 56 in 2e4ea0e
| let client = socketClusterClient.create(connectOptions); | |
| client.poolIndex = i; | |
| (async () => { | |
| for await (let event of client.listener('error')) { | |
| this._handleClientError(event); | |
| } | |
| })(); | |
| this.clients.push(client); | |
| } | |
| this._bindClientListeners(); |
and here
scc-broker-client/client-pool.js
Lines 61 to 66 in 2e4ea0e
| ClientPool.prototype._bindClientListeners = function () { | |
| this.clients.forEach((client) => { | |
| (async () => { | |
| for await (let event of client.listener('error')) { | |
| this._handleClientError(event); | |
| } |
Metadata
Metadata
Assignees
Labels
No labels