fix hangs caused by redoPlacement

After parsing a tile, it redoes placement for that tile if the angle has
changed since it started parsing. These redo calls were accidentally
done from the worker thread. Assigning the new work to `workRequest`
caused it to cancel itself.

Fix the problem by calling redoPlacement from the map thread.
This commit is contained in:
Ansis Brammanis
2015-06-02 17:06:24 -04:00
parent 3dfa317cf9
commit 1f5fb1db4a
4 changed files with 8 additions and 13 deletions

View File

@@ -55,6 +55,5 @@ void LiveTileData::parse() {
if (getState() != State::obsolete) {
setState(State::parsed);
redoPlacement();
}
}