techgaud / TTS

Text to speech plugin for RuneLite
BSD 2-Clause "Simplified" License
9 stars 6 forks source link

fix: avoid concurrent modification of spamHash #21

Closed iProdigy closed 1 year ago

iProdigy commented 1 year ago

Avoids the following exception

java.util.ConcurrentModificationException: null
    at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1013)
    at java.base/java.util.ArrayList$Itr.next(ArrayList.java:967)
    at com.ttsplugin.main.TTSPlugin.ignoreSpam(TTSPlugin.java:330)
    at com.ttsplugin.main.TTSPlugin.processMessage(TTSPlugin.java:208)
    at com.ttsplugin.main.TTSPlugin.onChatMessage(TTSPlugin.java:140)
    at net.runelite.client.eventbus.EventBus$Subscriber.invoke(EventBus.java:70)
    at net.runelite.client.eventbus.EventBus.post(EventBus.java:223)
    at net.runelite.client.callback.Hooks.post(Hooks.java:189)
    at as.ac(az.java:40779)
    at lp.al(lp.java:23)
    at iw.av(iw.java:563)
    at jn.al(jn.java:80)
    at client.jc(client.java:6899)
    at client.gt(client.java:3022)
    at client.br(client.java:1110)
    at br.is(br.java:367)
    at br.run(br.java:346)