page: fix drawpage race

This commit is contained in:
cinap_lenrek 2012-08-12 20:25:22 +02:00
parent 929441dd26
commit 2a9b90cf85

View file

@ -883,11 +883,10 @@ loadpages(Page *p, int ahead, int oviewgen)
if(size.x && size.y && newwin){
newwin = 0;
resizewin(size);
} else {
lockdisplay(display);
drawpage(p);
unlockdisplay(display);
}
lockdisplay(display);
drawpage(p);
unlockdisplay(display);
}
qunlock(p);
}