fixed more bugs in backup ws and fixed readyState unchanged on onclose event error

This commit is contained in:
Abhishek Sinha 2019-08-24 16:45:21 +05:30
parent 1679a8104f
commit bb7779c159

View File

@ -11006,6 +11006,10 @@
if (getStatusOfDeadSuAgain[0].is_live==false) {
// Kill the connection manually to ensure connection is really closed.
/* Source of inspiration:-
https://github.com/dart-lang/sdk/issues/25536
https://bugs.chromium.org/p/chromium/issues/detail?id=76358
*/
if (localbitcoinplusplus.backupWS[getFLOId].ws_connection.readyState==1) {
localbitcoinplusplus.backupWS[getFLOId].ws_connection.close();
}