2010-11-22, 20:59
Code:
class th(Thread):
def __init__ (self):
Thread.__init__(self)
def run(self):
while True:
time.sleep(1)
th().start()
while True:
time.sleep(1)
Thought i should ask about this before making a ticket. Consider the small example above; how do you terminate th when 'self' is being stopped?
Because xbmc complains "not the last thread" and crashes. Probably because it just terminates self, i dont know..