Instance: flush input cache on SIGHUP

This commit is contained in:
Max Kellermann
2020-02-16 20:38:56 +01:00
parent 29d05cdb8e
commit d1cc73775f
4 changed files with 24 additions and 4 deletions

View File

@@ -198,3 +198,10 @@ Instance::OnIdle(unsigned flags) noexcept
for (auto &partition : partitions)
partition.EmitIdle(flags);
}
void
Instance::FlushCaches() noexcept
{
if (input_cache)
input_cache->Flush();
}