Keep capabilities and protocol config around after close, retry opening pages for ~50ms, no longer warn in save situations of SHM re-use

This commit is contained in:
Thulinma 2023-07-11 14:17:22 +02:00
parent e8388b2a89
commit b7d5964512
4 changed files with 58 additions and 11 deletions

View file

@ -919,7 +919,12 @@ bool Util::checkException(const JSON::Value &ex, const std::string &useragent){
}
Util::DTSCShmReader::DTSCShmReader(const std::string &pageName){
rPage.init(pageName, 0, false, false);
size_t attempts = 0;
do {
rPage.init(pageName, 0, false, false);
++attempts;
if (!rPage && attempts < 5){Util::sleep(10);}
} while (!rPage && attempts < 5);
if (rPage){rAcc = Util::RelAccX(rPage.mapped);}
}