close files of inactive tranfsers

This commit is contained in:
Green Sky
2025-03-14 13:50:30 +01:00
parent 246587e30d
commit f5f7f2ca9d
10 changed files with 85 additions and 25 deletions

View File

@@ -54,6 +54,9 @@ namespace Components {
// the cached file2 for faster access
// should be destroyed when no activity and recreated on demand
std::unique_ptr<File2I> file;
// set to current time on init, read, write
float last_activity_ts {0.f};
};
struct FT1ChunkSHA1Requested {