8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Backport from trunk: mark port as disconnecting to avoid reporting (expected) network errors

This commit is contained in:
hvlad 2015-10-27 10:20:45 +00:00
parent ed1e5e65a5
commit 0599f4fef6

View File

@ -5355,13 +5355,16 @@ static void disconnect( rem_port* port)
// Clear context reference for the associated event handler
// to avoid SEGV during shutdown
if (port->port_async) {
if (port->port_async)
{
port->port_async->port_context = NULL;
port->port_async->port_flags |= PORT_disconnect;
}
// Perform physical network disconnect and release
// memory for remote database context.
port->port_flags |= PORT_disconnect;
port->disconnect();
delete rdb;
}