Skip to content

Commit

Permalink
fix: shutdown cause concurrent modification
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Mar 12, 2024
1 parent 6184334 commit 0e837c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/org/cef/CefClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import java.awt.*;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Vector;
Expand Down Expand Up @@ -498,7 +499,7 @@ private void cleanupBrowser(int identifier) {
browser_.remove(identifier);
} else if (!browser_.isEmpty()) {
// Close all browsers.
Collection<CefBrowser> browserList = browser_.values();
Collection<CefBrowser> browserList = new ArrayList<>(browser_.values());
for (CefBrowser browser : browserList) {
browser.close(true);
}
Expand Down

0 comments on commit 0e837c9

Please sign in to comment.