Skip to content

Commit 72d94ec

Browse files
author
ionut.stan
committed
Yay.
1 parent f2b7c3b commit 72d94ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Plugins/Client/WebSocketTransport.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,19 @@ class WebSocketTransport extends JSONRPC.ClientPluginBase
137137
//console.error(error);
138138
console.log("[" + process.pid + "] Rejecting all Promise instances in WebSockets/JSONRPCClientPlugin.");
139139

140+
let nCount = 0;
141+
140142
for(let nCallID in this._objWebSocketRequestsPromises)
141143
{
142144
this._objWebSocketRequestsPromises[nCallID].fnReject(error);
143145
delete this._objWebSocketRequestsPromises[nCallID];
146+
147+
nCount++;
148+
}
149+
150+
if(nCount)
151+
{
152+
console.error("[" + process.pid + "] Rejected " + nCount + " Promise instances in WebSockets/JSONRPCClientPlugin.");
144153
}
145154
}
146155

0 commit comments

Comments
 (0)