* Closes the underlying transport. * * @param {Boolean} discard * @private
(discard: boolean)
| 591 | * @private |
| 592 | */ |
| 593 | private closeTransport(discard: boolean) { |
| 594 | debug(class="st">"closing the transport (discard? %s)", !!discard); |
| 595 | if (discard) this.transport.discard(); |
| 596 | this.transport.close(this.onClose.bind(this, class="st">"forced close")); |
| 597 | } |
| 598 | } |