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

Adhocctl Fix - Valhalla Knights 2 #13383

Merged
merged 1 commit into from
Sep 5, 2020
Merged

Conversation

anr2me
Copy link
Collaborator

@anr2me anr2me commented Sep 4, 2020

This should fix #13279
This should also fix an issue that occurred when creating/joining/connecting to a group, where a socket error with EAGAIN/EWOULDBLOCK supposed to be retried on the blocking simulation but didn't get retried (because i forgot to check the error code) and ended fallback to faked success

// Already connected to a group. Should we fake a success?
// We need to notify the handler on success, even if it was faked
notifyAdhocctlHandlers(ADHOCCTL_EVENT_SCAN, 0);
hleDelayResult(0, "give a little time to be ready to receive the callback", us);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use return hleDelayResult(0, "give a little time to be ready to receive the callback", us) intead of return 0 below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah hleDelayResult have return value

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.

Valhalla knights 2 network stop at menu
3 participants