mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +00:00
small speed fix
This commit is contained in:
parent
4b5e229df9
commit
277e4929c4
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -228,7 +228,6 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
||||||
console.log("Took "+ (Date.now() - time) +" ms to prepare!");
|
console.log("Took "+ (Date.now() - time) +" ms to prepare!");
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
console.log("-", x, Date.now() - time)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ( dat.t === "MESSAGE_CREATE" ) {
|
} else if ( dat.t === "MESSAGE_CREATE" ) {
|
||||||
|
|
@ -369,6 +368,7 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
||||||
|
|
||||||
connDat.d.properties = Internal.WebSocket.properties;
|
connDat.d.properties = Internal.WebSocket.properties;
|
||||||
this.sendPacket( connDat );
|
this.sendPacket( connDat );
|
||||||
|
time = Date.now();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue