()
| 35 | } |
| 36 | |
| 37 | async close(): Promise<void> { |
| 38 | if (this.closed) { |
| 39 | return |
| 40 | } |
| 41 | this.closed = true |
| 42 | this.onclose?.() |
| 43 | // Close the peer if it hasn't already closed |
| 44 | if (this.peer && !this.peer.closed) { |
| 45 | this.peer.closed = true |
| 46 | this.peer.onclose?.() |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /** |
no outgoing calls
no test coverage detected