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():
|
if self._loop.get_debug():
|
||||||
self._source_traceback = format_helpers.extract_stack(sys._getframe(1))
|
self._source_traceback = format_helpers.extract_stack(sys._getframe(1))
|
||||||
_register_task(self)
|
_register_task(self)
|
||||||
# if current_task():
|
if loop.is_running():
|
||||||
# self._loop.call_soon(self.__step, context=self._context)
|
self.__step()
|
||||||
# else:
|
else:
|
||||||
self.__step()
|
self._loop.call_soon(self.__step, context=self._context)
|
||||||
|
|
||||||
|
|
||||||
def _reuse(self, coro, loop, default_done_callback=None):
|
def _reuse(self, coro, loop, default_done_callback=None):
|
||||||
|
|
Ładowanie…
Reference in New Issue