[*] 优化

This commit is contained in:
acgist
2023-05-21 10:32:53 +08:00
parent 59b683af24
commit a6ced43283
3 changed files with 35 additions and 18 deletions

View File

@@ -160,9 +160,7 @@ public class LocalClient extends RoomClient {
}
Log.i(RemoteClient.class.getSimpleName(), "关闭本地终端生产者:" + this.clientId + " - " + producerId);
synchronized (this.mediaStream) {
final Long pointer = this.tracks.get(producerId);
// TODO测试remove方法
// final Long pointer = this.tracks.remove(producerId);
final Long pointer = this.tracks.remove(producerId);
if(pointer == null) {
return;
}