Commit 9b81fa37 authored by ibuler's avatar ibuler

[Bugfix] 修复命令处理的bug

parent 983a9d8c
......@@ -33,6 +33,10 @@ class SizedList(list):
super().append(b)
self.size += len(b)
def clean(self):
self.size = 0
del self[:]
class Client:
"""
......@@ -132,8 +136,8 @@ class Server:
))
if self._input:
self.session.put_command(self._input, self._output)
del self.input_data[:]
del self.output_data[:]
self.input_data.clean()
self.output_data.clean()
self._in_input_state = True
def send(self, b):
......
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