From 0599f4fef638bd5e756ae550f3703a5534e96c8b Mon Sep 17 00:00:00 2001 From: hvlad Date: Tue, 27 Oct 2015 10:20:45 +0000 Subject: [PATCH] Backport from trunk: mark port as disconnecting to avoid reporting (expected) network errors --- src/remote/interface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/remote/interface.cpp b/src/remote/interface.cpp index 1975dfbb3f..67b3454b4f 100644 --- a/src/remote/interface.cpp +++ b/src/remote/interface.cpp @@ -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; }