Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing/disabling printer after initialized #17

Open
jesusoterogomez opened this issue Oct 30, 2017 · 0 comments
Open

Removing/disabling printer after initialized #17

jesusoterogomez opened this issue Oct 30, 2017 · 0 comments

Comments

@jesusoterogomez
Copy link

Thanks for this awesome module.

I wanted to know if there's any way to stop the printing server after it's been initialized.
I am trying to create a preferences panel for my application where the user can toggle bonjour/zeroconf discovery on or off, and changing a port, or optionally disabling the printer features altogether.

If I try to initialize the printer again, I get an EADDRINUSE error. and I have tried to stop the printer by calling printer.stop or printer.server.stop, or removing the reference to the printer variable and it doesn't seem to work.

Is there any non documented API feature to accomplish this?

Thanks in advance

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

No branches or pull requests

1 participant