mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Add a verification onwake
Somehow, Kodi can trigger OnWake without first trigger OnSleep.
This commit is contained in:
parent
f8bf3b5151
commit
98f4f11fc2
1 changed files with 5 additions and 0 deletions
|
@ -380,6 +380,11 @@ class Service(xbmc.Monitor):
|
||||||
|
|
||||||
elif method == 'System.OnWake':
|
elif method == 'System.OnWake':
|
||||||
|
|
||||||
|
if not self.monitor.sleep:
|
||||||
|
LOG.warn("System.OnSleep was never called, skip System.OnWake")
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
LOG.info("--<[ sleep ]")
|
LOG.info("--<[ sleep ]")
|
||||||
xbmc.sleep(10000)# Allow network to wake up
|
xbmc.sleep(10000)# Allow network to wake up
|
||||||
self.monitor.sleep = False
|
self.monitor.sleep = False
|
||||||
|
|
Loading…
Reference in a new issue