diff options
Diffstat (limited to 'src/server/buffer.nim')
-rw-r--r-- | src/server/buffer.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim index bcc39aa2..e952d9aa 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -1791,11 +1791,9 @@ macro bufferDispatcher(funs: static ProxyMap; buffer: Buffer; return switch proc readCommand(buffer: Buffer) = + var r = buffer.pstream.initPacketReader() var cmd: BufferCommand - var len: int var packetid: int - buffer.pstream.sread(len) - var r = buffer.pstream.initReader(len) r.sread(cmd) r.sread(packetid) bufferDispatcher(ProxyFunctions, buffer, cmd, packetid, r) |