Skip to content

Commit

Permalink
Merge pull request #444 from AgoraIO/dev/zw/4.5.0_fixs
Browse files Browse the repository at this point in the history
[Fix][Android] fixs IndexOutOfBoundsException
  • Loading branch information
HugoChaan authored Nov 26, 2024
2 parents 854c5a0 + 3c45a97 commit 51099e4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,12 @@ public void onUserOffline(int uid, int reason) {
Log.i(TAG, String.format(LABLE + " user %d offline! reason:%d", uid, reason));
runOnUIThread(() -> {
audioSeatManager.downSeat(uid);
remoteUidList.remove(uid);
if (remoteUidList.contains(uid)) {
remoteUidList.remove((Integer) uid);
Log.d(TAG, "After removing UID, remoteUidList: " + remoteUidList);
} else {
Log.w(TAG, "UID not found in remoteUidList: " + uid);
}
});
}

Expand Down

0 comments on commit 51099e4

Please sign in to comment.