be sure to flush on close

This commit is contained in:
David Rose 2003-04-29 21:59:07 +00:00
parent 5b4eb24b62
commit 9a234e0341

View File

@ -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()) {