nextsnake / nextcore

A super fast low level Discord library for full control.
https://nextcore.readthedocs.io/en/latest/
MIT License
27 stars 6 forks source link

Automatic safeguard disconnect wrongly firing on low-latency internet connections #252

Closed TAG-Epic closed 1 year ago

TAG-Epic commented 1 year ago

This was caused by a race condition where the HELLO event was received before the temporary listener was added.

This makes it a event so anybody can hook into it in case they want to, and cleans up the code a bit.

Fixes #251

TAG-Epic commented 1 year ago

Confirmed working by @THEGOLDENPRO https://github.com/nextsnake/nextcore/issues/251#issuecomment-1627837856