MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / application_job_unsubscribe_locked

Function application_job_unsubscribe_locked

src/daemon/application.c:1656–1664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654}
1655
1656static void application_job_unsubscribe_locked(cbm_daemon_application_job_t *job) {
1657 if (!job || job->subscribers == 0) {
1658 return;
1659 }
1660 job->subscribers--;
1661 if (job->subscribers == 0 && !job->terminal) {
1662 job->cancel_requested = true;
1663 }
1664}
1665
1666/* Transfer a final session's subscription to the disconnect cleanup path so
1667 * the job cannot be reaped before that path has observed terminal containment.

Calls

no outgoing calls

Tested by

no test coverage detected