Skip to content

Remove on player exit#332

Open
smallbrownbike wants to merge 3 commits intomafintosh:masterfrom
smallbrownbike:remove-on-exit
Open

Remove on player exit#332
smallbrownbike wants to merge 3 commits intomafintosh:masterfrom
smallbrownbike:remove-on-exit

Conversation

@smallbrownbike
Copy link
Copy Markdown

Fix for #331. --remove now triggers files to be removed when exiting the player.

process.exit()
})
}
process.on('SIGINT' || 'SIGTERM', onexit)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will only listen for sigint :) you need to add both listeners

@mafintosh
Copy link
Copy Markdown
Owner

added minor comment. lgtm otherwise 👍

@korzhyk
Copy link
Copy Markdown
Contributor

korzhyk commented Nov 20, 2021

@smallbrownbike hey, can you? #332 (comment)

@adrianiepure
Copy link
Copy Markdown

Please pardon my ignorance but I'm running peerflix with the following arguments and yet the files are not removed once exiting the player.

peerflix -r -k [magnet]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants