Xbmc doesn't exit, waits for sleep
#1
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.

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?
Reply
#2
make it a while loop that waits 1 seconds and do that 60 times
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Well off course, thank you very much!
Reply

Logout Mark Read Team Forum Stats Members Help
Xbmc doesn't exit, waits for sleep0