diff options
| author | Keith Packard <keithp@keithp.com> | 2014-06-14 18:51:25 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-06-14 18:55:23 -0700 |
| commit | 5392ee3c5328f8384ed30a2d147e4be96075e064 (patch) | |
| tree | cbf61a120fc54681ca52acc3d159052f3d15691f /altosuilib/AltosUIMapPreload.java | |
| parent | 23708b4760250f55e8e3b1a0141df9a9ee17a936 (diff) | |
altosuilib: Serialize access to async tile notify function in preload
This ensures that we see each tile getting downloaded and don't
mis-count, which would result in wedging the process
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIMapPreload.java')
| -rw-r--r-- | altosuilib/AltosUIMapPreload.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/altosuilib/AltosUIMapPreload.java b/altosuilib/AltosUIMapPreload.java index 3bdba39e..c91b06b8 100644 --- a/altosuilib/AltosUIMapPreload.java +++ b/altosuilib/AltosUIMapPreload.java @@ -327,7 +327,7 @@ public class AltosUIMapPreload extends AltosUIFrame implements ActionListener, I /* AltosUIMapTileListener methods */ - public void notify_tile(AltosUIMapTile tile, int status) { + public synchronized void notify_tile(AltosUIMapTile tile, int status) { if (status == AltosUIMapStore.loading) return; |
