From ddb64e30f187d7bc2de63d426d77001dc7012c42 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 25 May 2022 08:45:01 +0000 Subject: [PATCH] [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 d03b4f867539298019576e74c638a0148fe87bc2). closes odoo/odoo#92255 X-original-commit: e35a4d87578a588e33f604638289ca7e7ee02029 Signed-off-by: Xavier Morel (xmo) --- addons/bus/models/bus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/bus/models/bus.py b/addons/bus/models/bus.py index 5f98a77fd8e..874008a6ff9 100644 --- a/addons/bus/models/bus.py +++ b/addons/bus/models/bus.py @@ -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}"