summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/sound.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 8b6efeb5c..d100079f4 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -319,6 +319,9 @@ sub switch {
my $old_value = $is_pulseaudio_enabled;
my $write_config = sub {
+ if (!$is_pulseaudio_installed) {
+ return;
+ }
set_pulseaudio($is_pulseaudio_enabled);
set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled);
set_PA_autospan($is_pulseaudio_enabled);
@@ -330,7 +333,7 @@ sub switch {
if ($old_value ne $is_pulseaudio_enabled) {
require any;
any::ask_for_X_restart($in);
- }
+ }
};
my @common = (