Skip to content

Commit

Permalink
thanks jetbrains
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrakena committed Dec 11, 2023
1 parent 03a6632 commit a8ba12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests~/Contexts/ManagerGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ManagerTestable GetServer(bool ipv6Enabled = false)

public async Task<ManagerTestable> GetClientStarted(string serverKey = "", bool ipv6Enabled = false)
{
var key = _managers.Keys.MaxBy(a => a) + 1;
var key = _managers.Keys.Count > 0 ? _managers.Keys.MaxBy(a => a) + 1 : 0;
var manager = new ManagerTestable(key, this, new CancellationTokenSource());
manager.Ipv6Enabled = ipv6Enabled;
manager.Bind(IPAddress.Any, IPAddress.Any, 0);
Expand Down

0 comments on commit a8ba12e

Please sign in to comment.