Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2017-12-13 11:00:08 +01:00
commit 7dd7cc6fe1
2 changed files with 26 additions and 23 deletions

View file

@ -1147,8 +1147,8 @@ namespace IPC {
}
memset(empty, 0, payLen);
}
while (offsetOnPage == -1) {
{
uint32_t attempts = 0;
while (offsetOnPage == -1 && (++attempts) < 20) {
for (char i = 'A'; i <= 'Z'; i++) {
myPage.init(baseName.substr(1) + i, (4096 << (i - 'A')), false, false);
if (!myPage.mapped) {
@ -1174,11 +1174,14 @@ namespace IPC {
break;
}
}
}
if (offsetOnPage == -1) {
Util::wait(500);
}
}
if (offsetOnPage == -1){
FAIL_MSG("Could not register on page for %s", baseName.c_str());
myPage.close();
}
if (empty) {
free(empty);
}

View file

@ -542,7 +542,7 @@ namespace Mist {
pullLock.post();
pullLock.close();
pullLock.unlink();
WARN_MSG("No tracks found, cancelling");
INFO_MSG("No tracks found, cancelling");
return;
}
nProxy.userClient.countAsViewer = false;