Python Forum

Full Version: Code issue with time remaining loop. Python3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I don't see how it'd ever do what you expect, since you're spawning a new process every time you're calling "cleancycle", along with a new queue.

What if you only call cleancycle one time, when you want to start a process, so you don't have possibly dozens of extra processes running around? If you return the queue, then when you want to stop, you can put a value in the queue like you're trying to do now.
was able to get it with starting it as a thread and then if it receives 0 it kills itself off
Pages: 1 2