mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
XML::SAX::ExpatXS thread protection
This commit is contained in:
parent
b07be3885d
commit
d902afc7db
@ -195,11 +195,11 @@ sub data_consumer ($$) {
|
||||
eval {
|
||||
threads->yield;
|
||||
# XML::SAX::ExpatXS is not thread safe.
|
||||
if ($XML::Simple::PREFERRED_PARSER == 'XML::SAX::ExpatXS') {
|
||||
if ($XML::Simple::PREFERRED_PARSER eq 'XML::SAX::ExpatXS') {
|
||||
$XMLinSem->down();
|
||||
}
|
||||
$xml_data = XMLin ($file_name, forcearray => 'module');
|
||||
if ($XML::Simple::PREFERRED_PARSER == 'XML::SAX::ExpatXS') {
|
||||
if ($XML::Simple::PREFERRED_PARSER eq 'XML::SAX::ExpatXS') {
|
||||
$XMLinSem->up();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user