summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js
diff options
context:
space:
mode:
authorRaf Geens <raf@odoo.com>2021-05-04 12:20:33 +0000
committerlejeune quentin <qle@odoo.com>2021-05-10 14:11:58 +0000
commit6c24d30c3910e67ed751327d1554e2e8cf5e958b (patch)
tree31b2ec26c2c9325ef177b237607c4917d124cc90 /addons/web_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js
parente1659f8a9041d409d0d303a7c12342b2e73675c7 (diff)
[FIX] hw_drivers: Start iot_devices thread after registering it
This commit was originally part of a larger commit related to an Ingenico double connection deadlock bugfix in V13, but in V14 most of the related code has moved to enterprise. When a driver thread is running, calling `disconnect` on it will delete it from iot_devices. If the driver thread gets added to iot_devices in the Interface thread after starting it, this means there is a tiny window of time where `disconnect` could be called and the thread wouldn't be in iot_devices yet, resulting in an exception. This change puts the driver thread in iot_devices before starting it, avoiding that scenario and the need to check in `disconnect` for that happening.
Diffstat (limited to 'addons/web_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js')
0 files changed, 0 insertions, 0 deletions