mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46: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':
|
||||
|
||||
if not self.monitor.sleep:
|
||||
LOG.warn("System.OnSleep was never called, skip System.OnWake")
|
||||
|
||||
return
|
||||
|
||||
LOG.info("--<[ sleep ]")
|
||||
xbmc.sleep(10000)# Allow network to wake up
|
||||
self.monitor.sleep = False
|
||||
|
|
Loading…
Reference in a new issue