CloneServerStatItem 时检查indexId和toIndexId是否相同

This commit is contained in:
littledream 2025-01-11 12:05:55 +08:00
parent 8f3e0dbd82
commit 7aff9be159

View file

@ -72,6 +72,11 @@
return; return;
} }
if(indexId == toIndexId)
{
return;
}
var stat = _lstServerStat.FirstOrDefault(t => t.IndexId == indexId); var stat = _lstServerStat.FirstOrDefault(t => t.IndexId == indexId);
if (stat == null) if (stat == null)
{ {