drm: don't shift state on failed commits
This commit is contained in:
parent
205472bad7
commit
8d1d10397a
|
|
@ -1196,7 +1196,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
||||||
|
|
||||||
bool ok = connector->commitState(data);
|
bool ok = connector->commitState(data);
|
||||||
|
|
||||||
if (onlyTest)
|
if (onlyTest || !ok)
|
||||||
return ok;
|
return ok;
|
||||||
|
|
||||||
events.commit.emit();
|
events.commit.emit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue