Bug 1837570 - Canonical::ConnectMirror must also sync its value.

This is a fixup after a bad adaptation of a review comment on D180427 regressed
the value syncing on connect.

Differential Revision: https://phabricator.services.mozilla.com/D181811
This commit is contained in:
Andreas Pehrson 2023-06-22 21:23:48 +00:00
Родитель 8dd8561c12
Коммит 615db5a796
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -144,8 +144,8 @@ class Canonical {
MOZ_ASSERT(OwnerThread()->IsCurrentThreadIn());
MOZ_ASSERT(OwnerThread()->RequiresTailDispatch(aMirror->OwnerThread()),
"Can't get coherency without tail dispatch");
mMirrors.AppendElement(aMirror);
aMirror->ConnectedOnCanonicalThread(this);
AddMirror(aMirror);
}
void AddMirror(AbstractMirror<T>* aMirror) override {