Browse Source

simplified code

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