()
| 129 | } |
| 130 | |
| 131 | async stop() { |
| 132 | try { |
| 133 | await this.wdaControlClient?.deleteWdaSession(); |
| 134 | } catch (error) { |
| 135 | logger.error(`error in stop wda control client deleteWdaSession`, error); |
| 136 | } |
| 137 | |
| 138 | try { |
| 139 | await this.wdaGoIOS?.stop(); |
| 140 | } catch (error) { |
| 141 | logger.error(`error in stop webdriveragent stopAll`, error); |
| 142 | } |
| 143 | |
| 144 | try { |
| 145 | await this.wdaStreamClient.disconnect(); |
| 146 | } catch (error) { |
| 147 | logger.error(`error in stop wda stream client disconnect`, error); |
| 148 | } |
| 149 | |
| 150 | try { |
| 151 | await this.tunnelManager.stopTunnels(); |
| 152 | } catch (error) { |
| 153 | logger.error(`error in stop tunnels stopAll`, error); |
| 154 | } |
| 155 | |
| 156 | this.removeListeners(); |
| 157 | } |
| 158 | |
| 159 | removeListeners(): void { |
| 160 | if (this.tunnelManager) { |
no test coverage detected