Skip to content

Commit

Permalink
Fixing race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Jul 11, 2017
1 parent 9b59f33 commit f5425cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
80/1.9.9
Preference to enable video playback controls (thanks to ahomphophone)
Perform temporary file pruning in the background
Crash fixes
Translation updates (thanks to verdulo)

79/1.9.8.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
Expand Down Expand Up @@ -154,7 +155,7 @@ public static void pruneAllUsers() {
final Set<RedditAccount> users;

synchronized(INSTANCE_MAP) {
users = INSTANCE_MAP.keySet();
users = new HashSet<>(INSTANCE_MAP.keySet());
}

for(final RedditAccount user : users) {
Expand Down

0 comments on commit f5425cb

Please sign in to comment.