fix(ext/websocket): prevent 'closed normally' panic (#12437)

This commit is contained in:
Leo K 2021-10-19 18:21:15 +02:00 committed by GitHub
parent f83c756aa0
commit d6062b2653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View file

@ -261,6 +261,7 @@
});
break;
}
case "closed":
case "close": {
if (this[_closing]) {
this[_closed].resolve(value);