aboutsummaryrefslogtreecommitdiffstats
path: root/src/player/Control.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/player/Control.hxx')
-rw-r--r--src/player/Control.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/player/Control.hxx b/src/player/Control.hxx
index 2b15e89d8..ae4465ca6 100644
--- a/src/player/Control.hxx
+++ b/src/player/Control.hxx
@@ -263,6 +263,12 @@ struct PlayerControl {
ClientSignal();
}
+ void LockCommandFinished() {
+ Lock();
+ CommandFinished();
+ Unlock();
+ }
+
private:
/**
* Wait for the command to be finished by the player thread.