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

Bugfix: add recover logic in session listen go routines to prevent program crash #1588

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crisismaple
Copy link

@crisismaple crisismaple commented Dec 27, 2024

Panics in session listen/heartbeat methods would cause main process crash since there is no recover logic in those go routines, fix this issue by adding recover logic in those go routines:

2024/12/26 05:04:33 [DG0] wsapi.go:82:Open() error connecting to gateway wss://gateway.discord.gg/?v=9&encoding=json, dial tcp: lookup gateway.discord.gg: no such host
2024/12/26 05:04:33 [DG0] wsapi.go:908:reconnect() error reconnecting to gateway, dial tcp: lookup gateway.discord.gg: no such host
2024/12/26 05:04:34 [DG0] wsapi.go:908:reconnect() error reconnecting to gateway, Get "https://discord.com/api/v9/gateway": dial tcp: lookup discord.com: no such host

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.

1 participant