@ipcom/asterisk-ari 0.0.135 → 0.0.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.cjs
CHANGED
|
@@ -953,9 +953,7 @@ var ChannelInstance = class extends import_events.EventEmitter {
|
|
|
953
953
|
);
|
|
954
954
|
const wsClient2 = this.client.getWebSocketClients().get(this.app);
|
|
955
955
|
if (wsClient2) {
|
|
956
|
-
|
|
957
|
-
wsClient2.removeScopedChannelListeners(this.id, this.app);
|
|
958
|
-
}, 5e3);
|
|
956
|
+
wsClient2.removeScopedChannelListeners(this.id, this.app);
|
|
959
957
|
} else {
|
|
960
958
|
console.warn(
|
|
961
959
|
`WebSocketClient n\xE3o encontrado para o app '${this.app}'.`
|
|
@@ -1107,11 +1105,8 @@ var ChannelInstance = class extends import_events.EventEmitter {
|
|
|
1107
1105
|
console.log(
|
|
1108
1106
|
`Canal '${this.id}' foi destru\xEDdo. Removendo listeners associados.`
|
|
1109
1107
|
);
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
wsClient.removeScopedChannelListeners(this.id, this.app);
|
|
1113
|
-
wsClient.removeScopedPlaybackListeners(playback.id, this.app);
|
|
1114
|
-
}, 5e3);
|
|
1108
|
+
wsClient.removeScopedChannelListeners(this.id, this.app);
|
|
1109
|
+
wsClient.removeScopedPlaybackListeners(playback.id, this.app);
|
|
1115
1110
|
});
|
|
1116
1111
|
return playback;
|
|
1117
1112
|
}
|