chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eedc8b3
)
wip, fixes
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 21:54:11 +0000
(22:54 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 21:54:11 +0000
(22:54 +0100)
hippotat/__init__.py
patch
|
blob
|
history
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))
- 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)