fix(websocketshard): backport zombie connection fix (#9003)

This commit is contained in:
Voxelli
2023-01-02 20:28:08 +05:30
committed by GitHub
parent 649058055a
commit 56e67185fc
2 changed files with 16 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ process.send(123);
client.on('ready', () => {
console.log('Ready', client.options.shards);
if (client.options.shards === 0) {
if (client.options.shards[0] === 0) {
setTimeout(() => {
console.log('kek dying');
client.destroy();