Skip to content

Commit

Permalink
[security] When destroying conversations do not abort if they are det…
Browse files Browse the repository at this point in the history
…ached
  • Loading branch information
fjalvingh committed Dec 30, 2024
1 parent 987ed2a commit bd21015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ private void reapOldPages() {
pages.sort(Comparator.comparing(a -> a.getLastClickTime()));

//-- Remove the eldest pages
toRemove = pages.subList(0, pages.size() - MAX_PAGES - 500);
toRemove = pages.subList(0, pages.size() - (MAX_PAGES - 500));
m_activePageList.removeAll(toRemove);
}

Expand All @@ -626,6 +626,7 @@ private void reapOldPages() {
}
} catch(Exception x) {
System.out.println("Failed to destroy page: " + x);
//x.printStackTrace();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void destroyConversation(@NonNull final ConversationContext cc) {
IShelvedEntry she = m_shelvedPageStack.get(i);
if(she instanceof ShelvedDomUIPage) {
ShelvedDomUIPage sdp = (ShelvedDomUIPage) she;
if(sdp.getPage().getConversation() == cc) {
if(sdp.getPage().internalGetConversation() == cc) {
m_shelvedPageStack.remove(i);
}
}
Expand Down

0 comments on commit bd21015

Please sign in to comment.