Repository navigation
Fix leaked promise in pull - #530
Merged
Merged
Conversation
dfriederich
force-pushed
the
fix_sync_pull
branch
from
September 11, 2024 21:53
98a9c90 to
f8f247d
Compare
koral--
approved these changes
Sep 12, 2024
Member
|
Could you sync your branch? I've just fixed the CI config, so PR check should work. |
dfriederich
force-pushed
the
fix_sync_pull
branch
from
September 12, 2024 18:23
f8f247d to
4b04cf6
Compare
When pulling, the second adb sync transfer was just ignored, causing a warning to be logged for every pull operation. 2024-09-11T20:10:52.421Z root ERROR (node:174306) Warning: a promise was created in a handler at node:internal/async_hooks:130:17 but was not returned from it, see http://goo.gl/rRqMUw at new Promise (/..../vendors-node_modules_drivelist_build_Release_drivelist_node-node_modules_devicefarmer_adbkit_-505406.js:50543:10) Fixing this by actually returning the promise. Signed-off-by: Daniel Friederich <[email protected]>
dfriederich
force-pushed
the
fix_sync_pull
branch
from
September 13, 2024 16:02
4b04cf6 to
be18919
Compare
Author
|
thanks for the validation setup fix :-) |
|
This cause memory leak again. And almost revert the effect in #315 |
sunjw
added a commit
to sunjw/adbkit
that referenced
this pull request
Apr 27, 2025
This reverts commit 75cd64f.
Author
|
reverting is also wrong, it does break functional behavior. E.g. cancellation, failure to report errors. |
|
Yes, this function need to fully refactor or the data need to be dropped from memory in the promise chain. |
sunjw
added a commit
to sunjw/adbkit
that referenced
this pull request
Sep 18, 2026
This reverts commit d683f3b.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When pulling, the second adb sync transfer was just ignored, causing a warning to be logged for every pull operation.
2024-09-11T20:10:52.421Z root ERROR (node:174306) Warning: a promise was created in a handler at node:internal/async_hooks:130:17 but was not returned from it, see http://goo.gl/rRqMUw
at new Promise (/..../vendors-node_modules_drivelist_build_Release_drivelist_node-node_modules_devicefarmer_adbkit_-505406.js:50543:10)
Fixing this by actually returning the promise.