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

usbmuxd_events_unsubscribe is blocked about 2~3 secs #123

Open
yanqinglu opened this issue Dec 24, 2021 · 1 comment
Open

usbmuxd_events_unsubscribe is blocked about 2~3 secs #123

yanqinglu opened this issue Dec 24, 2021 · 1 comment

Comments

@yanqinglu
Copy link

If users don't install iTunes, the usbmuxd_events_unsubscribe will be blocked about 2~3 secs.
usbmuxd_events_unsubscribe calls thread_join to wait the thread to be finished, but the sleep in usbmuxd_listen_poll delay it. Should not use the sleep function, it's better to use a event to wait for timeout, then set the event in usbmuxd_events_unsubscribe .

@yanqinglu
Copy link
Author

yanqinglu commented Dec 24, 2021

By the way, the select calling in socket_connect also blocks the usbmuxd_events_unsubscribe

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

No branches or pull requests

1 participant