mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-03 05:03:04 +00:00
Merge pull request #2387 from nextcloud/fix-crash-after-hangup-due-to-modifying-a-list-while-iterating-over-it
Fix crash after hangup due to modifying a list while iterating over it
This commit is contained in:
commit
679b601844
@ -1707,8 +1707,12 @@ public class CallActivity extends CallBaseActivity {
|
||||
}
|
||||
}
|
||||
|
||||
List<String> sessionIdsToEnd = new ArrayList<String>(peerConnectionWrapperList.size());
|
||||
for (PeerConnectionWrapper wrapper : peerConnectionWrapperList) {
|
||||
endPeerConnection(wrapper.getSessionId(), false);
|
||||
sessionIdsToEnd.add(wrapper.getSessionId());
|
||||
}
|
||||
for (String sessionId : sessionIdsToEnd) {
|
||||
endPeerConnection(sessionId, false);
|
||||
}
|
||||
|
||||
if (localStream != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user