Revert "Related: tdf#147448 Scope owning mutex before it gets destroyed"
commit7aae1d338aaf454b99c7354aca78951e26043b2b
authorEike Rathke <erack@redhat.com>
Sat, 26 Feb 2022 16:52:29 +0000 (26 17:52 +0100)
committerCaolán McNamara <caolanm@redhat.com>
Sat, 26 Feb 2022 19:07:38 +0000 (26 20:07 +0100)
tree6f765df3e054acaaedd77b4d0a35849ec47a1480
parentdcd042c6f28276d707af409a87a1a4380398e9b0
Revert "Related: tdf#147448 Scope owning mutex before it gets destroyed"

This reverts commit dcd042c6f28276d707af409a87a1a4380398e9b0.

Reason for revert:
Revisiting, it was wrong to put that protector in its own scope because the actual mutex lock is only held in its ctor and it does SetAllowRefresh(true) in dtor, so while it exists it prevents other refresh timers to execute.

Change-Id: I058c1359c19971dba59a9273a7a8cddd77ece37f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130556
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
sc/source/core/data/documen2.cxx