Commit 65642683 authored by Eric's avatar Eric

fix bug: telnet exit problem

parent bf89ac88
......@@ -43,7 +43,7 @@ class SizedList(list):
return False
def append(self, b):
if not self.is_full():
if not self.is_full() and b:
super(SizedList, self).append(b)
self.size += len(b)
self.end_with_ascii = b[-1] <= 126
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment