浏览代码

bugfix: fixed bugs introduced in the previous commits

digital 7 年之前
父节点
当前提交
f5e765c697
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      network/__init__.py

+ 2 - 2
network/__init__.py

@@ -87,7 +87,7 @@ class ConnHandlerBase(object):
         """
         This method waits for the client to send something and returns bytes!
         """
-        data_received = await self.socket.recv(self,self.block_size)
+        data_received = await self.socket.recv(block_size)
         return data_received
 
     async def send(self, data, log_msg=None):
@@ -154,7 +154,7 @@ class ConnHandler(ConnHandlerBase):
             block_size = self.block_size
         # we don't want to call recv of the current class, wich is this method
         # instead call the recv method of the direct parent using super()
-        data_received = await super().recv(self,block_size=block_size)
+        data_received = await super().recv(block_size=block_size)
         data_decoded = data_received.decode("utf-8")
         return data_decoded