aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputAll.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputAll.cxx')
-rw-r--r--src/OutputAll.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/OutputAll.cxx b/src/OutputAll.cxx
index 36d41184a..d167a80cd 100644
--- a/src/OutputAll.cxx
+++ b/src/OutputAll.cxx
@@ -225,10 +225,7 @@ audio_output_reset_reopen(struct audio_output *ao)
{
const ScopeLock protect(ao->mutex);
- if (!ao->open && ao->fail_timer != nullptr) {
- g_timer_destroy(ao->fail_timer);
- ao->fail_timer = nullptr;
- }
+ ao->fail_timer.Reset();
}
/**