mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(websocketshard): backport zombie connection fix (#9003)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user