2016-05-18, 17:06
I can't recreate, but I think what might be happening is that kodi is quitting before the task gets executed.
This can happen because of the threading model. You can try decreasing the task frequency under the general settings.
if that doesn't work, let me know and I'll see if lengthening the join timeout for the dispatcher thread helps, however, with a task frequency of 100ms and the current timeout of 500ms, there really shouldn't be any reason the shutdown message doesn't get taken out of the queue and processed.
If it's neither of those then I'm not quite sure why it is only intermittently working for you. These intermittent bugs in a threaded script can be difficult to sort out because they are often dependent on the processing state of external programs.
This can happen because of the threading model. You can try decreasing the task frequency under the general settings.
if that doesn't work, let me know and I'll see if lengthening the join timeout for the dispatcher thread helps, however, with a task frequency of 100ms and the current timeout of 500ms, there really shouldn't be any reason the shutdown message doesn't get taken out of the queue and processed.
If it's neither of those then I'm not quite sure why it is only intermittently working for you. These intermittent bugs in a threaded script can be difficult to sort out because they are often dependent on the processing state of external programs.