Closed kanielc closed 3 years ago
This seems to be the place where things go wrong.
So that fixes one potential deadlock, but i dont think that is the actual issue
Yeah apparently I lock the same mutex twice. Once in updateChannel and once before calling it in a special branch: https://github.com/andersfylling/disgord/blob/develop/cache.go#L174
Currently writing a bunch of tests to fix this and detect other issues.
fix is not yet released. but u can checkout the latest commit and give it a try
It works, thanks!
Describe the bug After calling channel update, bot is no longer responsive to any commands. Executed method looks like:
Handler looks like
Expected behavior Follow up commands should invoke the
handleMsg function
Error messages No errors are thrown
Desktop (please complete the following information):
Additional context
Took images of the call stack with debugger and noticed a network connection thread seemed to still be active. Everything is fine after the first image, but the second one is where it hangs.