play verb: fix race condition where play canceled immediately after start

This commit is contained in:
Dave Horton
2025-05-01 11:50:40 -04:00
parent 8b18532f31
commit a19cc9c962
3 changed files with 12 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ class WsRequestor extends BaseRequestor {
/* send the message */
this.ws.send(JSON.stringify(obj), async() => {
this.logger.debug({obj}, `WsRequestor:request websocket: sent (${url})`);
//this.logger.debug({obj}, `WsRequestor:request websocket: sent (${url})`);
// If session:reconnect is waiting for ack, hold here until ack to send queuedMsgs
if (this._reconnectPromise) {
try {