May-04-2017, 04:10 PM
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.
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.