joining thread hangs unexpectedly

Ian Kelly ian.g.kelly at gmail.com
Fri Sep 26 09:47:30 EDT 2014


On Thu, Sep 25, 2014 at 11:45 PM, Christian Calderon
<calderon.christian760 at gmail.com> wrote:
> I am working on a personal project that helps minecraft clients connect to
> minecraft servers using tor hidden services. I am handling the client
> connection in a separate thread, but when I try to join the threads they
> hang. The problem is in the file called hiddencraft.py, in the function main
> at the end, in the finally clause at the bottom. Can anyone tell me what I
> am doing wrong?
>
> https://github.com/ChrisCalderon/hiddencraft

You're creating a separate Queue for each thread but when you store
each one in the queue_ variable you're replacing the previous one, so
when you go to kill them you only ever send the die command to the
last thread created.



More information about the Python-list mailing list