kopia lustrzana https://github.com/cirospaciari/socketify.py
fix on_start and on_stop
Fix: https://github.com/cirospaciari/socketify.py/issues/153 Fix: https://github.com/cirospaciari/socketify.py/issues/140pull/191/head
rodzic
c692e29ba2
commit
d0c42d4cf1
|
@ -120,10 +120,10 @@ class RequestTask:
|
|||
if self._loop.get_debug():
|
||||
self._source_traceback = format_helpers.extract_stack(sys._getframe(1))
|
||||
_register_task(self)
|
||||
# if current_task():
|
||||
# self._loop.call_soon(self.__step, context=self._context)
|
||||
# else:
|
||||
if loop.is_running():
|
||||
self.__step()
|
||||
else:
|
||||
self._loop.call_soon(self.__step, context=self._context)
|
||||
|
||||
|
||||
def _reuse(self, coro, loop, default_done_callback=None):
|
||||
|
|
Ładowanie…
Reference in New Issue