Skip to content

Commit

Permalink
Leave the device in a ready state after supervision
Browse files Browse the repository at this point in the history
  • Loading branch information
zner0L committed Jun 26, 2023
1 parent c5b854c commit f9690df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const iosApi = <RunTarget extends SupportedRunTarget<'ios'>>(
// Creating and disposing a new SSH connection for each command is not efficient but it replicates the
// previous behaviour of calling `ssh`. If we wanted to keep the connection open, we would also need a way
// to dispose of it at the very end, but we don't know when that is (cf. #24).
ssh.dispose();
if (ssh.connection) ssh.dispose();
return res;
},
async setupEnvironment() {
Expand Down Expand Up @@ -378,6 +378,7 @@ Components:" > /etc/apt/sources.list.d/appstraction.sources`);

await this._internal.ensureSupervision();
await this.waitForDevice();
await this.unlockScreen();
}
},
clearStuckModals: asyncUnimplemented('clearStuckModals') as never,
Expand Down

0 comments on commit f9690df

Please sign in to comment.