Python Terminated Thread Cannot Restart
        Posted  
        
            by Mel Kaye
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mel Kaye
        
        
        
        Published on 2010-05-12T20:51:59Z
        Indexed on 
            2010/05/12
            20:54 UTC
        
        
        Read the original article
        Hit count: 250
        
Hello,
I have a thread that gets executed when some action occurs. Given the logic of the program, the thread cannot possibly be started while another instance of it is still running. Yet when I call it a second time, I get a "RuntimeError: thread already started" error. I added a check to see if it is actually alive using the Thread.is_alive() function, and it is actually dead.
What am I doing wrong?
I can provide more details as are needed.
© Stack Overflow or respective owner