Ver Fonte

simplified code

digital há 7 anos atrás
pai
commit
4476160f24
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      network/__init__.py

+ 1 - 2
network/__init__.py

@@ -370,8 +370,7 @@ class Server(object):
                     # don't strip the data of its whitespaces, since they may
                     # be important.
                     lschat.info("Client:"+data.rstrip())
-                    coro = handler.handle(data)
-                    task = await curio.spawn(coro)
+                    await handler.handle(data)
             except Exception as e:
                     lserver.error(e, exc_info=True)
                     # let's sleep a bit, in case something is broken and the