Skip to content
Snippets Groups Projects
Commit 83777078 authored by tsm-odoo's avatar tsm-odoo
Browse files

[FIX] bus: fix interface error on server stop


When stopping the server, all cursors are closed. The issue is that
the ImDispatch thread is kept alive until the main thread exits.

This can lead to errors during server stop: the ImDispatch thread
could try to poll an already closed connection thus raising a
`psycopg2.InterfaceError` exception.

This commit solves the issue by hiding the interface error when
it occurs during server stop.

closes odoo/odoo#99849

Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
parent ea481271
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment