1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

game log reader reads async now.

should have done that a long time ago
update profile page to have a bit better space usage
This commit is contained in:
RaidMax
2019-03-09 10:28:04 -06:00
parent 98fba114f5
commit 86bc3a42ac
11 changed files with 110 additions and 114 deletions

View File

@ -34,9 +34,9 @@ namespace IW4MAdmin.Application.IO
// todo: max async
// take the old start position and go back the number of new characters
rd.BaseStream.Seek(-fileSizeDiff, SeekOrigin.End);
// the difference should be in the range of a int :P
string newLine;
while (!String.IsNullOrEmpty(newLine = rd.ReadLine()))
while (!string.IsNullOrEmpty(newLine = await rd.ReadLineAsync()))
{
logLines.Add(newLine);
}