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

Switching or desactivate wifi can crash Android application #3326

Merged
merged 1 commit into from
Dec 8, 2018

Conversation

hgourvest
Copy link

Problem: Switching or desactivate wifi can lead to have EINVAL error code on Android
Solution: do not abort when this error happen

@bluca
Copy link
Member

bluca commented Dec 8, 2018

I don't think this is right. The socket is dead if accept fails with that error. At the very least ifdef it for Android app that it doesn't cause issues on other systems.

@hgourvest
Copy link
Author

It seems reasonable, I pushed a correction to limit this behavior to Android.

@bluca
Copy link
Member

bluca commented Dec 8, 2018

I think the whole expression has to be ifdeffed, it breaks the build:

../src/tcp_listener.cpp:311:1: error: embedding a directive within macro arguments is not portable [-Werror]

Also please rebase and squash the fixups to avoid breaking bisect

…code

returned on Android.
Solution: Avoid killing the application, allows to take
the appropriate measures to this situation.
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.

2 participants