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

fix(Shard): use provided timeout when respawning #6735

Merged
merged 1 commit into from Oct 3, 2021

Conversation

SpaceEEC
Copy link
Member

@SpaceEEC SpaceEEC commented Oct 1, 2021

Please describe the changes this PR makes and why it should be merged:

This PR resolves #6575 in a semver: patch manner by attaching the provided timeout to the exit listener which then passes this timeout back to the spawn method.
Also resolved a bug where Shard#spawn would not return a promise when the timeout was disabled.

A semver: major solution would be to remove timeout parameters and make them properties to be specified when constructing the sharding manger (or at least the shard).

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@iCrawl iCrawl merged commit 905d100 into discordjs:main Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: When shard respawns automatically after it exits, timeout is reset to 30000.
3 participants