Timer hangs when quitting app

Gitte Wange gitte at wange.dk
Sun Nov 28 18:15:30 CET 2004


I'm trying to create an application that needs a Timer() to do various
My class has a self.timer = Timer(900, self.sendDNSRequest)
The timer itself works fine but whenever I try to exit the application, it
simply hangs and I have to kill the proces using `kill pid`

I have tried uncommenting the timer stuff, and then the app works as

Is there anything I need to do to kill the timer?
I have tried to create a __del__(self) function in my app. It gets called
when I leave out the timer, but with the timer enabled, it never gets

Any hint will be appreciated :-)

Gitte Wange

More information about the Python-list mailing list