Small changes for later

This commit is contained in:
EntenKoeniq
2022-04-06 08:44:17 +02:00
parent 8383c1fd0e
commit ce00f07e89
4 changed files with 19 additions and 9 deletions

View File

@ -70,9 +70,11 @@ namespace CoopServer
}
newFile.FileData.Add(buffer);
Logging.Debug($"[{fileInfo.Name}] {buffer.Length}");
}
}
Logging.Debug($"[{fileInfo.Name}] RESULT {newFile.FileData.Count} / {newFile.FileLength}");
_files.Add(newFile);
fileCount++;
}
@ -238,6 +240,8 @@ namespace CoopServer
private void Send(long nethandle, DownloadFile file)
{
Logging.Debug($"SEND [{file.FileName}][{_fileDataPosition}/{file.FileData.Count - 1}]");
NetConnection conn = Server.MainNetServer.Connections.FirstOrDefault(x => x.RemoteUniqueIdentifier == nethandle);
if (conn == null)
{