Merge branch 'ent-9968-proceso-snmptrapd-se-muere-a-los-pocos-segundos-de-iniciarse-en-v766' into 'develop'

Control the destructor of the SNMPServer when running parallel queries.

See merge request artica/pandorafms!5312
This commit is contained in:
Rafael Ameijeiras 2022-12-05 12:29:46 +00:00
commit e3c46ab7d6
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}) {