diff --git a/src/Admin/ThingsGateway.Common/Common/ConcurrentList.cs b/src/Admin/ThingsGateway.Common/Common/ConcurrentList.cs index 541eb2bac..20e790ddf 100644 --- a/src/Admin/ThingsGateway.Common/Common/ConcurrentList.cs +++ b/src/Admin/ThingsGateway.Common/Common/ConcurrentList.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充 // 此代码版权(除特别声明外的代码)归作者本人Diego所有 // 源代码使用协议遵循本仓库的开源协议及附加协议 @@ -477,7 +477,7 @@ public class ConcurrentList : IList, IReadOnlyList { lock (((ICollection)m_list).SyncRoot) { - return m_list.IndexOf(item); + return m_list.LastIndexOf(item); } }