2012-06-11, 20:20
Hi,
this is the first thread I opened on the forums, but I've been reading along for a while.
Currently I am helping a fellow developer update his addon XBMC File Cleaner for Eden.
The addon deletes watched movies and episodes based upon a number of criteria and cleans up afterwards. The addon also features delayed start and scanning interval options to prevent overhead. These values are in the range from 10 to 60 minutes of sleep time.
Unfortunately I'm having some difficulty shutting down XBMC now that I have updated the addon to implement the xbmc.service hook. The code checks for abortRequested as it should, but once it enters sleep for several minutes, the abortRequested is not checked, and subsequently causes XBMC to hang upon shutdown when the addon is sleeping.
The code for my fork of his addon can be found here.
My question is: how do I prevent the addon from sleeping if an abort request comes in?
Thanks in advance,
Anthirian
this is the first thread I opened on the forums, but I've been reading along for a while.
Currently I am helping a fellow developer update his addon XBMC File Cleaner for Eden.
The addon deletes watched movies and episodes based upon a number of criteria and cleans up afterwards. The addon also features delayed start and scanning interval options to prevent overhead. These values are in the range from 10 to 60 minutes of sleep time.
Unfortunately I'm having some difficulty shutting down XBMC now that I have updated the addon to implement the xbmc.service hook. The code checks for abortRequested as it should, but once it enters sleep for several minutes, the abortRequested is not checked, and subsequently causes XBMC to hang upon shutdown when the addon is sleeping.
The code for my fork of his addon can be found here.
My question is: how do I prevent the addon from sleeping if an abort request comes in?
Thanks in advance,
Anthirian