Fixed something that may break later

This commit is contained in:
hydrabolt
2015-11-08 20:43:20 +00:00
parent 821c12f82c
commit a36bc226fd
2 changed files with 2 additions and 2 deletions

View File

@@ -292,7 +292,7 @@ var VoiceConnection = (function (_EventEmitter) {
self.vWSData = data.d;
KAI = setInterval(function () {
if (vWS.readyState === WebSocket.OPEN) vWS.send(JSON.stringify({
if (vWS && vWS.readyState === WebSocket.OPEN) vWS.send(JSON.stringify({
op: 3,
d: null
}));

View File

@@ -283,7 +283,7 @@ class VoiceConnection extends EventEmitter {
self.vWSData = data.d;
KAI = setInterval(() => {
if (vWS.readyState === WebSocket.OPEN)
if (vWS && vWS.readyState === WebSocket.OPEN)
vWS.send(JSON.stringify({
op: 3,
d: null