Skip to content

Commit

Permalink
[Fix][Android] fixs IndexOutOfBoundsException
Browse files Browse the repository at this point in the history
  • Loading branch information
alienzh committed Nov 26, 2024
1 parent 854c5a0 commit 3c45a97
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 3c45a97

Please sign in to comment.