2014-05-15, 22:24
Hi,
Hope this is the right place to ask this. I have written a simple script that I am running as a service. I want to execute the script every minute so I wrote a while loop.
But when I exit XBMC it hangs (sleeps) until the sleep command is done, then it exits. What change do I need to make it exit imideately when I want to exit XBMC?
Hope this is the right place to ask this. I have written a simple script that I am running as a service. I want to execute the script every minute so I wrote a while loop.
Code:
while (not xbmc.abortRequested):
do stuff.....
xbmc.sleep(60000)
But when I exit XBMC it hangs (sleeps) until the sleep command is done, then it exits. What change do I need to make it exit imideately when I want to exit XBMC?