https://bugs.kde.org/show_bug.cgi?id=339913
Maximiliano Curia <m...@debian.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m...@debian.org --- Comment #2 from Maximiliano Curia <m...@debian.org> --- We have received a patch for this issue in the Debian bugtracker in the bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789887 which still seems to apply. Index: kmix-4.14.0/backends/mixer_pulse.cpp =================================================================== --- kmix-4.14.0.orig/backends/mixer_pulse.cpp +++ kmix-4.14.0/backends/mixer_pulse.cpp @@ -37,6 +37,8 @@ # include <canberra.h> #endif +#include <time.h> + // PA_VOLUME_UI_MAX landed in pulseaudio-0.9.23, so this can be removed when/if // minimum requirement is ever bumped up (from 0.9.12 currently) #ifndef PA_VOLUME_UI_MAX @@ -716,7 +718,14 @@ static void context_state_callback(pa_co if (s_mixers.contains(KMIXPA_PLAYBACK)) { kWarning(67100) << "Connection to PulseAudio daemon closed. Attempting reconnection."; s_pulseActive = UNKNOWN; - QTimer::singleShot(50, s_mixers[KMIXPA_PLAYBACK], SLOT(reinit())); + static time_t last_timestamp = 0; + time_t current_time = time(NULL); + if ((current_time - last_timestamp) > 3) { + QTimer::singleShot(50, s_mixers[KMIXPA_PLAYBACK], SLOT(reinit())); + } else { + QTimer::singleShot(60000, s_mixers[KMIXPA_PLAYBACK], SLOT(reinit())); + } + last_timestamp = current_time; } } } -- You are receiving this mail because: You are watching all bug changes.