Merge PR #536: DHT: Properly clean up pluginTimer when all things are gone
This commit is contained in:
commit
7b89d1ee5a
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user