fix media states being retriggered multiple times (#54)

This commit is contained in:
WarmUpTill
2020-11-01 18:53:48 +01:00
committed by GitHub
parent 1a3ed0d09c
commit 8e26148255
2 changed files with 9 additions and 2 deletions

View File

@@ -18,6 +18,9 @@ struct MediaSwitch : SceneSwitcherEntry {
bool anyState = false;
time_restriction restriction = TIME_RESTRICTION_NONE;
int64_t time = 0;
bool matched = false;
std::atomic<bool> stopped = false;
std::atomic<bool> ended = false;