digital преди 7 години
родител
ревизия
4476160f24
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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
                     # don't strip the data of its whitespaces, since they may
                     # be important.
                     # be important.
                     lschat.info("Client:"+data.rstrip())
                     lschat.info("Client:"+data.rstrip())
-                    coro = handler.handle(data)
-                    task = await curio.spawn(coro)
+                    await handler.handle(data)
             except Exception as e:
             except Exception as e:
                     lserver.error(e, exc_info=True)
                     lserver.error(e, exc_info=True)
                     # let's sleep a bit, in case something is broken and the
                     # let's sleep a bit, in case something is broken and the