G
Gitte Wange
Hello,
I'm trying to create an application that needs a Timer() to do various
checks.
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
expected.
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
called.
Any hint will be appreciated
Greetings,
Gitte Wange
I'm trying to create an application that needs a Timer() to do various
checks.
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
expected.
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
called.
Any hint will be appreciated
Greetings,
Gitte Wange