We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 449fcf3 commit fd57ed5Copy full SHA for fd57ed5
common/src/main/java/de/bluecolored/bluemap/common/plugin/MapUpdateService.java
@@ -81,6 +81,8 @@ public void run() {
81
}
82
83
private synchronized void updateRegion(Vector2i regionPos) {
84
+ if (closed) return;
85
+
86
// we only want to start the render when there were no changes on a file for 5 seconds
87
TimerTask task = scheduledUpdates.remove(regionPos);
88
if (task != null) task.cancel();
@@ -101,7 +103,7 @@ public void run() {
101
103
delayTimer.schedule(task, 5000);
102
104
105
- public void close() {
106
+ public synchronized void close() {
107
this.closed = true;
108
this.interrupt();
109
0 commit comments