Skip to content

Commit

Permalink
fix unhandled rejection when installing apk (#446)
Browse files Browse the repository at this point in the history
Signed-off-by: Bambloo <[email protected]>
  • Loading branch information
bambloo authored May 11, 2023
1 parent 9ab08cc commit 0a11b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adb/DeviceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export default class DeviceClient {
let errorListener: (err: Error) => void;
return new Bluebird<boolean>((resolve, reject) => {
errorListener = (err: Error) => reject(err);
endListener = () => this.installRemote(temp).then((value: boolean) => resolve(value));
endListener = () => this.installRemote(temp).then((value: boolean) => resolve(value)).catch(reject);
transfer.on('error', errorListener);
transfer.on('end', endListener);
}).finally(() => {
Expand Down

0 comments on commit 0a11b3b

Please sign in to comment.