[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:
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user