Files
runelite/http-api
Lotto 054dd4852d Synchronize usages of ImageIO.read(...)
ImageIO.read(...) is not really thread-safe, as calling it on several threads at the same time can cause NullPointerExceptions and ConcurrentModificationExceptions, as reported in https://bugs.openjdk.java.net/browse/JDK-8058973 and https://bugs.openjdk.java.net/browse/JDK-6986863.

This commit changes all usages of this method to synchronize on ImageIO.class, so the method is never run asynchronously.
2018-03-07 20:06:16 +01:00
..