From 9a234e0341de41630a8897409e15e96afbd66323 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 29 Apr 2003 21:59:07 +0000 Subject: [PATCH] be sure to flush on close --- panda/src/net/connectionManager.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/net/connectionManager.cxx b/panda/src/net/connectionManager.cxx index 7a454c9e2c..d4956336a7 100644 --- a/panda/src/net/connectionManager.cxx +++ b/panda/src/net/connectionManager.cxx @@ -234,6 +234,10 @@ open_TCP_client_connection(const string &hostname, int port, //////////////////////////////////////////////////////////////////// bool ConnectionManager:: close_connection(const PT(Connection) &connection) { + if (connection != (Connection *)NULL) { + connection->flush(); + } + PR_Lock(_set_mutex); Connections::iterator ci = _connections.find(connection); if (ci == _connections.end()) {