MCPcopy Create free account
hub / github.com/AutoCodeStack/ios-device-farm / stop

Method stop

src/modules/idf.ts:131–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 2

startMethod · 0.95
handleDestroyFunction · 0.45

Calls 4

removeListenersMethod · 0.95
deleteWdaSessionMethod · 0.80
disconnectMethod · 0.80
stopTunnelsMethod · 0.80

Tested by

no test coverage detected