digital hace 7 años
padre
commit
e54d5cbae8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/beewatch/server/__init__.py

+ 1 - 1
lib/beewatch/server/__init__.py

@@ -79,7 +79,7 @@ class ConnHandlerBeeWatch(digilib.network.ConnHandlerBase):
             return
         try:
             retval = func(**kwargs)
-            if type(retval) is curio.coroutine:
+            if hasattr(retval,"__await__"):
                 lserver.debug("curio.run started")
                 task = curio.run(retval)
                 lserver.debug("curio.run finished")