grab abort handler on cork

pull/39/head
Ciro 2022-11-14 08:59:14 -03:00
rodzic 4ccec27611
commit 14fec1b241
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -1016,6 +1016,7 @@ class AppResponse:
def cork(self, callback):
if not self.aborted:
self.grab_aborted_handler()
self._cork_handler = callback
if is_python: #call is enqueued to garantee corking works properly in python3
self.loop.enqueue(lambda instance: lib.uws_res_cork(instance.SSL, instance.res, uws_generic_cork_handler, instance._ptr), self)