()
| 2069 | _this6.transport.close(); |
| 2070 | }; |
| 2071 | var cleanupAndClose = function cleanupAndClose() { |
| 2072 | _this6.off("upgrade", cleanupAndClose); |
| 2073 | _this6.off("upgradeError", cleanupAndClose); |
| 2074 | close(); |
| 2075 | }; |
| 2076 | var waitForUpgrade = function waitForUpgrade() { |
| 2077 | // wait for upgrade to finish since we can't send packets while pausing a transport |
| 2078 | _this6.once("upgrade", cleanupAndClose); |