mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
adjust to await foreach and adjust enqueue ident change
This commit is contained in:
parent
1c8f16fac0
commit
b58d882686
2 changed files with 6 additions and 6 deletions
|
|
@ -148,9 +148,10 @@ internal class IdentityService : IdentificationService.IdentificationServiceBase
|
|||
{
|
||||
_logger.LogInformation("Enqueued " + identchange.UidWithIdent.Uid.Uid + ":" + identchange.IsOnline + " from " + identchange.UidWithIdent.Ident.ServerId);
|
||||
|
||||
foreach (var dict in identChanges.Where(k => k.Key != identchange.UidWithIdent.Ident.ServerId))
|
||||
foreach (var k in identChanges.Keys)
|
||||
{
|
||||
dict.Value.Enqueue(identchange);
|
||||
if (string.Equals(k, identchange.UidWithIdent.Ident.ServerId, System.StringComparison.Ordinal)) continue;
|
||||
identChanges[k].Enqueue(identchange);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue