diff --git a/src/QueryHandlerNeo4j.cc b/src/QueryHandlerNeo4j.cc index ee7f4465..5e36ed0f 100644 --- a/src/QueryHandlerNeo4j.cc +++ b/src/QueryHandlerNeo4j.cc @@ -221,9 +221,10 @@ void QueryHandlerNeo4j::process_query(protobufs::queryMessage &proto_query, // errors on response construction if (error == false) { neoconn_pool->commit_tx(tx); - } else { - neoconn_pool->put_conn(conn); } + + neoconn_pool->put_conn(conn); + } int QueryHandlerNeo4j::parse_commands(