Error process (pid 225) failed to quit after polite request -- forcing it to quit now
I have stripped the plugin.py code down to this and still I get the above error. Obviously there is something fundamentally wrong in my basic code. With this plugin.py
in my plugin, it writes to the debug log every 60 seconds just fine but I get the above error when I try to disable or reload the plugin.
Can you please see what is causing this error?
plugin.py as follows:
- Code: Select all
#! /usr/bin/env python
# -*- coding: utf-8 -*-
class Plugin(indigo.PluginBase):
def __init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs):
indigo.PluginBase.__init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs)
self.debug = pluginPrefs.get("showDebugInfo", True)
########################################
def __del__(self):
indigo.PluginBase.__del__(self)
########################################
def runConcurrentThread(self):
pInterval = 60
self.debugLog("Starting concurrent thread")
self.debugLog("L98 set to update every %s %s" %(pInterval, 'seconds'))
try:
while True:
self.sleep(int(pInterval))
self.update()
except self.StopThread:
pass
########################################
def stopConcurrentThread(self):
self.stopThread = True
########################################
def update(self):
self.debugLog('L272 testing')
Thanks in advance and I look forward to your comments.