Merge pull request #44 from jpirnay/chore-mutex
chore: Add a couple of mutex locks
This commit is contained in:
@@ -58,7 +58,10 @@ void EpubReaderActivity::onEnter() {
|
||||
|
||||
// Configure screen orientation based on settings
|
||||
// NOTE: This affects layout math and must be applied before any render calls.
|
||||
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
|
||||
{
|
||||
RenderLock lock(*this);
|
||||
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
|
||||
}
|
||||
|
||||
epub->setupCacheDir();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user