File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -326,8 +326,7 @@ class WSv2 extends EventEmitter {
326326 // 0 packets, these are included as the 2nd to last value
327327 const seq = (
328328 ( msg [ 0 ] === 0 ) &&
329- ( msg [ 1 ] !== 'hb' ) &&
330- ! ( msg [ 1 ] === 'n' && msg [ 2 ] [ 6 ] === 'ERROR' ) // error notifications lack seq
329+ ( msg [ 1 ] !== 'hb' )
331330 )
332331 ? msg [ msg . length - 2 ]
333332 : msg [ msg . length - 1 ]
@@ -347,7 +346,7 @@ class WSv2 extends EventEmitter {
347346
348347 if ( ! isFinite ( authSeq ) ) return null
349348 if ( authSeq === 0 ) return null // still syncing
350- if ( msg [ 1 ] === 'n' && msg [ 2 ] [ 6 ] === 'ERROR' ) return null // err notifications lack seq
349+ if ( msg [ 1 ] === 'n' ) return null // notifications don't advance seq
351350 if ( authSeq === this . _lastAuthSeq ) return null // seq didn't advance
352351
353352 // check
You can’t perform that action at this time.
0 commit comments