mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
fix(adb): throw correct error from sync.pull
This commit is contained in:
parent
22f0329136
commit
9718f83926
3 changed files with 31 additions and 5 deletions
|
@ -30,6 +30,9 @@ export async function* adbSyncPullGenerator(
|
|||
yield packet.data;
|
||||
}
|
||||
done = true;
|
||||
} catch (e) {
|
||||
done = true;
|
||||
throw e;
|
||||
} finally {
|
||||
if (!done) {
|
||||
// sync pull can't be cancelled, so we have to read all data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue