Skip to content

setBroadcast(true) hangs on Android #82

Description

@shynst

In order to send broadcast messages we need to call setBroadcast() first.
However this method hangs and never returns!

protected void doInBackgroundGuarded(Void... params) {
	UdpSocketClient client = findClient(cId, callback);
	if (client == null) {
		return;
	}

	try {
		client.setBroadcast(flag);
		// **** we never get there!

		callback.invoke();
	} catch (SocketException e) {
		callback.invoke(UdpErrorUtil.getError(null, e.getMessage()));
	}
}

I tested in Android emulator and with a Samsung Galaxy S8. Both running on Android API 28.
Any ideas what is going on here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions