aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/player/Control.cxx7
-rw-r--r--src/player/Control.hxx5
2 files changed, 6 insertions, 6 deletions
diff --git a/src/player/Control.cxx b/src/player/Control.cxx
index 830dd146d..290f61af8 100644
--- a/src/player/Control.cxx
+++ b/src/player/Control.cxx
@@ -185,12 +185,7 @@ void
PlayerControl::LockClearError()
{
Lock();
-
- if (error_type != PlayerError::NONE) {
- error_type = PlayerError::NONE;
- error.Clear();
- }
-
+ ClearError();
Unlock();
}
diff --git a/src/player/Control.hxx b/src/player/Control.hxx
index 812f4d621..edfde09fe 100644
--- a/src/player/Control.hxx
+++ b/src/player/Control.hxx
@@ -326,6 +326,11 @@ public:
private:
void PauseLocked();
+ void ClearError() {
+ error_type = PlayerError::NONE;
+ error.Clear();
+ }
+
public:
void LockPause();