X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat%2F__init__.py;h=4cc9e70855bfb49f609d6695e85b5a07eb7c51aa;hp=82f0634bf234d583456c0d5e48860fb2c6bc469c;hb=7a68893ff08c60d0973b6bebe119c1303d812375;hpb=eedc8b30ac92c216d6eef8ff9616bc0cf226a8e6 diff --git a/hippotat/__init__.py b/hippotat/__init__.py index 82f0634..4cc9e70 100644 --- a/hippotat/__init__.py +++ b/hippotat/__init__.py @@ -163,8 +163,9 @@ class SlipStreamDecoder(): def inputdata(self, data): #print('SLIP-GOT ', repr(data)) - self._buffer += data - packets = slip.decode(self._buffer) + data = self._buffer + data + self._buffer = b'' + packets = slip.decode(data) self._buffer = packets.pop() for packet in packets: self._maybe_packet(packet)