| 1654 | } |
| 1655 | |
| 1656 | static 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. |
no outgoing calls
no test coverage detected