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

Mumble.stop() not stopping thread #108

Open
IntiValderas opened this issue May 24, 2021 · 3 comments
Open

Mumble.stop() not stopping thread #108

IntiValderas opened this issue May 24, 2021 · 3 comments

Comments

@IntiValderas
Copy link

When disconnecting manually and trying to reconnect to mumble I receive the error that threads can only be started once.
RuntimeError: threads can only be started once

mumble.stop() is excecuted properly, client is disconnecting as it should be. When I want to reconnect the client by using mumble.start() I get the error.

Not sure if it's a bug or if I'm doing something wrong here.

@azlux
Copy link
Owner

azlux commented May 24, 2021

mumble.stop() ask the mumble thread to stop, so it can take time (few second) cleaning all sounds and callbacks call.
Related to #38 , if the close() (Maybe renamed to disconnect() ) if the function you want, I can add it to the pymumble code. (I've forgot than @ArniDagur gave me some answer an this ticket)

@IntiValderas
Copy link
Author

That doesn't seem to be working. I've managed to reconnect by using mumble.connect(). My code is capturing sound but the sound cannot be heard in the server it self. No errors are given just no sound that is being sent.

@azlux
Copy link
Owner

azlux commented May 26, 2021

Before calling start(), can you check the command self.mumble.is_alive() ? Once this function return False, you should be able to reconnect again without error.

In case it still not working, maybe you can share a part of you script, so we can check together.

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

2 participants