()
| 2329 | _this6.transport.close(); |
| 2330 | }; |
| 2331 | var cleanupAndClose = function cleanupAndClose() { |
| 2332 | _this6.off("upgrade", cleanupAndClose); |
| 2333 | _this6.off("upgradeError", cleanupAndClose); |
| 2334 | close(); |
| 2335 | }; |
| 2336 | var waitForUpgrade = function waitForUpgrade() { |
| 2337 | // wait for upgrade to finish since we can't send packets while pausing a transport |
| 2338 | _this6.once("upgrade", cleanupAndClose); |