change error to debug

This commit is contained in:
Amish Shah
2017-01-07 21:48:30 +00:00
parent 0df17b1634
commit de0ba9fb7c

View File

@@ -67,7 +67,7 @@ class VoiceWebSocket extends EventEmitter {
if (this.dead) return;
if (this.ws) this.reset();
if (this.attempts > 5) {
this.emit('error', new Error(`Too many connection attempts (${this.attempts}).`));
this.emit('debug', new Error(`Too many connection attempts (${this.attempts}).`));
return;
}