We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The bots hangs after X times of opening a chest
To Reproduce Steps to reproduce the behavior:
i added this code to test the behaviour and it always fail
public async Task<Window> OpenContainer(Block block, int timeoutMs = 10 * 1000) { if (!Bot.Data.Windows.AllowedBlocksToOpen.Contains(block.Info.Type)) { throw new ArgumentException("Cannot open block of type " + block.Info.Name); } openContainerTsc = new(); var packet = new PlaceBlockPacket( (int)PlayerHand.MainHand, block.Position, BlockFace.Top, 0.5f, 0.5f, 0.5f, false, ++Bot.SequenceId); _ = Bot.Client.SendPacket(packet); _ = playerPlugin?.SwingArm(); var timeoutTask = Task.Delay(timeoutMs); var resultTask = openContainerTsc.Task; // << this hangs var completedTask = await Task.WhenAny(resultTask, timeoutTask); if (completedTask == timeoutTask) { openContainerTsc = null; throw new TimeoutException("Opening container timed out."); } openContainerTsc = null; return await resultTask; }
The text was updated successfully, but these errors were encountered:
Why did you close this? The problem still occurs, right?
Sorry, something went wrong.
oh I think it closed when i closed the pull request, but yes it still occurs
Can I see more of your code? Especially the part where openContainerTsc gets completed? So I can investigate the problem
openContainerTsc
No branches or pull requests
Describe the bug
The bots hangs after X times of opening a chest
To Reproduce
Steps to reproduce the behavior:
i added this code to test the behaviour and it always fail
The text was updated successfully, but these errors were encountered: