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

Change the listen command to run indefinitely and retry should usbmuxd be killed #26

Merged
merged 2 commits into from
Apr 5, 2021

Conversation

danielpaulus
Copy link
Owner

@danielpaulus danielpaulus commented Apr 5, 2021

Some parts of the code still execute a log.Fatal rather than returning an error. This is a leftover form my initial days of golang learning and now I think it is not a good idea for several reasons.
This PR removes log.Fatal for deviceconnection.go and usbmuxconnection.go and replaces it with returning an error.

I need those to return an actual error so I can try to reconnect in an endless loop for the LISTEN command rather than exitting and failing the command.

@danielpaulus danielpaulus changed the title have NewUsbMuxConnection and DeviceConnection return proper errors in… Change the listen command to run indefinitely and retry should usbmuxd be killed Apr 5, 2021
@danielpaulus danielpaulus merged commit 992c060 into main Apr 5, 2021
@danielpaulus danielpaulus deleted the fix/ListenCommandForLinux branch April 5, 2021 14:32
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