VolmitSoftware / React

Smart Server Performance
https://volmit.com
GNU General Public License v3.0
95 stars 52 forks source link

Don't modify tracking data while reading it (fixes #491) #498

Closed jascotty2 closed 5 years ago

jascotty2 commented 5 years ago

Don't modify tracking data while reading it (fixes #491)

cyberpwnn commented 5 years ago

Just so you know, GMap.k() returns a COPY of a keySet. So modifying the hashmap (gmap) does not change the arraylist (GMap.k()) while iterating.

Your .clone() is redundant. .k() does this.