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

x/mobile: net.DialUDP doesn't work on Android #13313

Closed
ghost opened this issue Nov 18, 2015 · 1 comment
Closed

x/mobile: net.DialUDP doesn't work on Android #13313

ghost opened this issue Nov 18, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 18, 2015

For example, I have:

Conn, _ := net.DialUDP("udp", LocalAddr, ServerAddr)

Then any action on Conn will crash the app, e.g. Conn.Close()

I tested this on Samsung Galaxy S3 with Android 4.1.1 and Note 5 with Android 5.1.1. Only native Go is used.

@bradfitz
Copy link
Contributor

You're ignoring the error value. Look at the error to see the reason.

For future questions, see https://golang.org/wiki/Questions

@golang golang locked and limited conversation to collaborators Nov 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants