DHT: Properly clean up pluginTimer when all things are gone

master
Michael Zanetti 2022-02-06 19:50:45 +01:00
parent eff66ea2f4
commit b125cafb3c
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ def setupThing(info):
def thingRemoved(thing): def thingRemoved(thing):
if len(myThings()) is 0: if len(myThings()) is 0:
global pollTimer global pollTimer
del pollTimer
pollTimer = None pollTimer = None