mafintosh / mafintosh/peerflix

--remove not triggered when peerflix exits because player was closed

Open
#331 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6.3k
Forks
668
PR merge metrics
No merged PRs in 30d

Description

`-r, --remove remove files on exit`

When --remove is set, files should be removed regardless of how we exit.

Currently, `engine.remove()` is only triggered on `SIGINT` and `SIGTERM` and not when we exit after the player closes as we are directly calling `process.exit(0)` from the `[player].on('exit')` callbacks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the [player].on('exit') callbacks and compare their process.exit(0) path with the SIGINT and SIGTERM cleanup paths that call engine.remove(). Verify that closing the player while --remove is set removes the files before the process exits.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.