Ignore current server when checking port usage

This commit is contained in:
Pat Hartl 2024-02-01 00:05:18 -06:00
parent ce35012bbb
commit e8aea10def

View file

@ -280,6 +280,6 @@
private async Task OnPortNumberChanged(int value)
{
if (value > 0)
PortInUse = await ServerService.Get(s => s.Port == value).AnyAsync();
PortInUse = await ServerService.Get(s => s.Port == value && s.Id != Id).AnyAsync();
}
}