Page MenuHomePhorge

Fix the problem that kazv cannot be closed when cached files
ClosedPublic

Authored by nannanko on Aug 24 2024, 3:27 AM.

Details

Summary

Fixed the problem that kazv cannot be closed when cached files.

Type: fix

Test Plan

Open a room with uncached files and verify kazv starts caching the files.

Close kazv and verify that the cache jobs is killed immediately.

Diff Detail

Repository
rK kazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

nannanko removed a reviewer: servant.
tusooa requested changes to this revision.Aug 24 2024, 5:38 PM
tusooa added inline comments.
src/kazv-io-manager.cpp
188–191
This revision now requires changes to proceed.Aug 24 2024, 5:38 PM
nannanko added inline comments.
src/kazv-io-manager.cpp
188–191

It don't work because the cancel() will cause the job to be removed from cacheJobs, so iterators and loops cannot be used reliably.

nannanko marked an inline comment as done.
  • Fixed the problem that kazv cannot be closed when cached files

Added comment on why loops cannot be used directly on m_d->cacheJobs

tusooa retitled this revision from Fixed the problem that kazv cannot be closed when cached files to Fix the problem that kazv cannot be closed when cached files.Aug 31 2024, 7:03 PM
This revision is now accepted and ready to land.Sep 1 2024, 3:21 PM