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

Send a response for mute/unmute requests when the player is already in the requested state and add a timeout #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

singofwalls
Copy link

Should resolve issues with the server lagging/freezing -- as well as unmuting pre-emptively.

The pre-emptive unmuting problem occurs because unmute requests sent when the player is already unmuted (such as an unmute request at round start and then at playerspawn) retry constantly until the player can be unmuted (as in, as soon as the player gets muted again, the previous unmute request that failed finally goes through). This seems to be because gmod never receives a return response for mute requests in which the player is already in the correct state. This pull request sends a response in such cases.

I believe this was also the cause of the server lagging/freezing. In any case, the timeout should resolve that issue if it remains.

Fixes #11

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.

Bot stops responding / has delays after a while
1 participant