mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-16 17:04:44 +01:00
use async for WriteData
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user