chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip, fixes
[hippotat.git]
/
hippotat
/
__init__.py
diff --git
a/hippotat/__init__.py
b/hippotat/__init__.py
index 82f0634bf234d583456c0d5e48860fb2c6bc469c..4cc9e70855bfb49f609d6695e85b5a07eb7c51aa 100644
(file)
--- a/
hippotat/__init__.py
+++ b/
hippotat/__init__.py
@@
-163,8
+163,9
@@
class SlipStreamDecoder():
def inputdata(self, data):
#print('SLIP-GOT ', repr(data))
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)
self._buffer = packets.pop()
for packet in packets:
self._maybe_packet(packet)