Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race conditions in starting adb #56

Merged
merged 2 commits into from
Apr 16, 2021
Merged

Conversation

UniversalSuperBox
Copy link
Member

Since we don't return the start-server exec promise, clients would run more adb commands before the server was up. This would cause "Connection Refused" to be returned to the second adb command, and everyone was confused.

Actually returning the exec allows downstreams to wait on the server starting.

Ref: ubports/ubports-installer#1847

Since we don't return the start-server exec promise, clients would run
more adb commands before the server was up. This would cause "Connection
Refused" to be returned to the second adb command, and everyone was
confused.

Actually returning the exec allows downstreams to wait on the server
starting.

Ref: ubports/ubports-installer#1847
@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #56 (ea627e4) into master (688cf3b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #56   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines         1653      1651    -2     
=========================================
- Hits          1653      1651    -2     
Impacted Files Coverage Δ
src/adb.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 688cf3b...ea627e4. Read the comment docs.

Using 'npm install' causes npm to install the newest possible
dependencies based on package.json. 'npm ci' uses package-lock.json
instead. This ensures that releases are reproducible and so are test
failures.
@UniversalSuperBox UniversalSuperBox merged commit 91855ce into master Apr 16, 2021
@UniversalSuperBox UniversalSuperBox deleted the fix-start-server-race branch April 16, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant