def _unregister(self): # print "r @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # print "r @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # print "r @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # for (a,b,c,d,e,f) in inspect.stack(): # print "r @@@@@@@@@@: " + str(b) + " - " + str(c) + " - "+ str(d) + " - "+ str(e) # print "r @@@@@@@@@@: " + str(self) # print "r @@@@@@@@@@: " + str(self._callback_handler) # print "r @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # print "r @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # print "r @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" # if self._callback_handler != None: # TODO: check this! reactor.rem_timer(self._callback_handler)
def _unregister(self): reactor.rem_timer(self._callback_handler)