Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78379
| References | <CA+9L8FzjUfAtPwnRM3iUfX+AtVhAa7NshAyNx_XZyToYupXRgA@mail.gmail.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2014-09-26 07:47 -0600 |
| Subject | Re: joining thread hangs unexpectedly |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14394.1411739717.18130.python-list@python.org> (permalink) |
On Thu, Sep 25, 2014 at 11:45 PM, Christian Calderon <calderon.christian760@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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: joining thread hangs unexpectedly Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-26 07:47 -0600
csiph-web