Kaynağa Gözat

small bugfix

digital 7 yıl önce
ebeveyn
işleme
e54d5cbae8
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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")