Browse Source

removed log message and commented the changes of the previous commit

digital 7 years ago
parent
commit
6d43dc4472
1 changed files with 4 additions and 1 deletions
  1. 4 1
      network/__init__.py

+ 4 - 1
network/__init__.py

@@ -152,7 +152,8 @@ class ConnHandler(ConnHandlerBase):
         """
         if block_size == None:
             block_size = self.block_size
-        lch.debug("self.__class__: {}".format(self.__class__))
+        # 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_decoded = data_received.decode("utf-8")
         return data_decoded
@@ -166,6 +167,8 @@ class ConnHandler(ConnHandlerBase):
             lschat.info("server:"+log_msg)
         else:
             lschat.info("Server:"+data)
+        # we don't want to call send of the current class, wich is this method
+        # instead call the send method of the direct parent using super()
         data_encoded = bytes(data, "utf-8")
         send_status = await super().send(data_encoded)
         return send_status