Cope with Packet::Nop
This commit is contained in:
parent
3141582223
commit
df692507d9
|
@ -239,6 +239,9 @@ export abstract class LayerBoundary implements ProxyOutbound, ProxyInbound {
|
|||
case 'Extension':
|
||||
// Ignore unknown extensions.
|
||||
break;
|
||||
case 'Nop':
|
||||
// Ignore no-ops.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,6 @@ export class Relay extends LayerBoundary {
|
|||
while (true) {
|
||||
const rawPacket = this.decoder.try_next();
|
||||
if (rawPacket === void 0) break;
|
||||
if (rawPacket === false) continue;
|
||||
const wirePacket = IO.toPacket(rawPacket);
|
||||
if (wirePacket === void 0) throw new Error("Bad IO.Packet");
|
||||
if (this.debug) console.log('IN', stringify(rawPacket));
|
||||
|
|
Loading…
Reference in New Issue