diff --git a/shard_connection.cpp b/shard_connection.cpp index b78ed312..bcf331ad 100644 --- a/shard_connection.cpp +++ b/shard_connection.cpp @@ -289,6 +289,10 @@ void shard_connection::disconnect() { } m_bev = NULL; + // empty pipeline + while (m_pending_resp) + delete pop_req(); + m_connection_state = conn_disconnected; // by default no need to send any setup request