Browse Source

bugfix: fixed bugs introduced in the previous commits

digital 7 years ago
parent
commit
f5e765c697
1 changed files with 2 additions and 2 deletions
  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