use async for WriteData

This commit is contained in:
Mikhail
2024-07-11 14:35:48 -04:00
parent ed40557e19
commit 988c71c5b2
121 changed files with 132 additions and 131 deletions

View File

@@ -20,13 +20,13 @@ namespace nksrv.LobbyServer.Msgs.Wallet
{
Console.WriteLine("Request currency " + (CurrencyType)item);
}
foreach (var currency in user.Currency)
{
response.Currency.Add(new NetUserCurrencyData() { Type = (int)currency.Key, Value = currency.Value });
}
WriteData(response);
await WriteDataAsync(response);
}
}
}

View File

@@ -27,7 +27,7 @@ namespace nksrv.LobbyServer.Msgs.Wallet
response.ChargeCash.Value = item.Value;
}
}
WriteData(response);
await WriteDataAsync(response);
}
}
}