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