fixed more bugs in backup ws and fixed readyState unchanged on onclose event error
This commit is contained in:
parent
1679a8104f
commit
bb7779c159
@ -11006,6 +11006,10 @@
|
|||||||
if (getStatusOfDeadSuAgain[0].is_live==false) {
|
if (getStatusOfDeadSuAgain[0].is_live==false) {
|
||||||
|
|
||||||
// Kill the connection manually to ensure connection is really closed.
|
// 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) {
|
if (localbitcoinplusplus.backupWS[getFLOId].ws_connection.readyState==1) {
|
||||||
localbitcoinplusplus.backupWS[getFLOId].ws_connection.close();
|
localbitcoinplusplus.backupWS[getFLOId].ws_connection.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user