X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_dht_Khashmir%2Factions.py;fp=apt_dht_Khashmir%2Factions.py;h=088bc0f2a6476b1a59643c681fbc3304f87d7940;hp=a3a6fc84e5d6ac1f836a4fd9deb1984790c58a75;hb=7b9c88b513a3dc27a1dcaf72cec7d456bf8cf051;hpb=9dc951ead43b5651a99fbb31690fccf49530c04c diff --git a/apt_dht_Khashmir/actions.py b/apt_dht_Khashmir/actions.py index a3a6fc8..088bc0f 100644 --- a/apt_dht_Khashmir/actions.py +++ b/apt_dht_Khashmir/actions.py @@ -271,3 +271,9 @@ class KeyExpirer: s = "delete from kv where time < '%s';" % self.cut c.execute(s) self.next_expire = reactor.callLater(self.config['KE_DELAY'], self.doExpire) + + def shutdown(self): + try: + self.next_expire.cancel() + except: + pass