Explorar o código

bugfix: async function wans't awaited

digital %!s(int64=7) %!d(string=hai) anos
pai
achega
88edcf00c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      network/__init__.py

+ 1 - 1
network/__init__.py

@@ -143,7 +143,7 @@ class ConnHandler(ConnHandlerBase):
         """
         This method can be used to send a welcome message to the client.
         """
-        self.send("Welcome client, this is the server sending!")
+        await self.send("Welcome client, this is the server sending!")
 
     async def recv(self,block_size=None):
         """