|
@@ -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
|