()
| 41 | } |
| 42 | |
| 43 | async stop(): Promise<void> { |
| 44 | if (this.tunnelProc) { |
| 45 | await this.tunnelProc.stop("SIGINT"); |
| 46 | logger.info("tunnel for device stopped successfully."); |
| 47 | } |
| 48 | |
| 49 | if (this.runWdaProc) { |
| 50 | await this.runWdaProc.stop("SIGINT"); |
| 51 | logger.info("runwda process stopped"); |
| 52 | this.removeListeners(); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | removeListeners(): void { |
| 57 | if (this.tunnelProc) { |
no test coverage detected