[FIX] bus: restore _daemonic workaround

In fixing leftover jammy warnings in #92078 I mistakenly updated the
setting of `_daemonic` to the public `daemon`, missing that it was a
dedicated and explicit workaround for Python's checks (cf
d03b4f8675).

closes odoo/odoo#92255

X-original-commit: e35a4d87578a588e33f604638289ca7e7ee02029
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
Xavier Morel
2022-05-25 14:38:07 +02:00
parent 203ed70789
commit ddb64e30f1
+1 -1
View File
@@ -123,7 +123,7 @@ class ImDispatch:
# it will handle a longpolling request
if not odoo.evented:
current = threading.current_thread()
current.daemon = True
current._daemonic = True
# rename the thread to avoid tests waiting for a longpolling
current.name = f"openerp.longpolling.request.{current.ident}"