mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Stop threads on vision shutdown
This commit is contained in:
parent
2f8a65d364
commit
ab206b2abf
@ -144,6 +144,13 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
|
||||
help = false;
|
||||
}
|
||||
});
|
||||
frame.addWindowListener(new java.awt.event.WindowAdapter() {
|
||||
@Override
|
||||
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
|
||||
e.shutdown();
|
||||
eh.shutdown();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -50,10 +50,6 @@ public class CachedStream2D<T> extends BasicStream<T> implements ProceduralStrea
|
||||
|
||||
@Override
|
||||
public T get(double x, double z) {
|
||||
if (IrisComplex.cacheLock.get()) {
|
||||
return stream.get((int) x, (int) z);
|
||||
}
|
||||
|
||||
return cache.compute(Cache.key((int) x, (int) z), (k, v) -> v != null ? v : stream.get((int) x, (int) z));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user