Control the destructor of the SNMPServer when running parallel queries.

This commit is contained in:
Ramon Novoa 2022-12-02 11:46:06 +01:00
parent 0eead22fdf
commit ca8bc2d29a
1 changed files with 1 additions and 0 deletions

View File

@ -1041,6 +1041,7 @@ sub get_db_rows_parallel ($$;@) {
no warnings 'redefine';
local *PandoraFMS::ProducerConsumerServer::DESTROY = sub {};
local *PandoraFMS::BlockProducerConsumerServer::DESTROY = sub {};
local *PandoraFMS::SNMPServer::DESTROY = sub {};
# Query the nodes.
foreach my $node (@{$nodes}) {