From 75e8926c11593dcb388e1690dcade168f877c16e Mon Sep 17 00:00:00 2001 From: mlopez Date: Tue, 14 Mar 2017 14:30:08 +0100 Subject: [PATCH] Revert "Only stop service in windows when error not XML PARSER problems. Gitlab: #518" This reverts commit 4dce98e2d2855cfe2af28522a1ee916a76ebd8ee --- pandora_server/bin/pandora_server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/bin/pandora_server b/pandora_server/bin/pandora_server index 4443ea9006..6870d82cbf 100755 --- a/pandora_server/bin/pandora_server +++ b/pandora_server/bin/pandora_server @@ -173,8 +173,8 @@ sub pandora_crash () { # worried about that. If perl has a more "clean" way to avoid this messages # will be nice to replace this code, but at this time it's the only way I know - callback_stop() if ($^O eq 'MSWin32' && defined($Config{'win32_service'}) && @_ !~ m/XML\/Parser/); - + callback_stop() if ($^O eq 'MSWin32' && defined($Config{'win32_service'})); + foreach my $error_line (@_) { # Trap the XML error and exit without nasty messages if ($error_line =~ m/XML\/Parser/) {