mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-10-08 01:42:05 +00:00
add back in the service monitor watchdog
This commit is contained in:
parent
0923b649e7
commit
a3b500061a
2 changed files with 35 additions and 4 deletions
|
@ -5,6 +5,7 @@ import os
|
|||
import threading
|
||||
import json
|
||||
from datetime import datetime
|
||||
import time
|
||||
|
||||
cwd = xbmcaddon.Addon(id='plugin.video.emby').getAddonInfo('path')
|
||||
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( cwd, 'resources', 'lib' ) )
|
||||
|
@ -66,7 +67,8 @@ class Service():
|
|||
|
||||
WINDOW = self.WINDOW
|
||||
WINDOW.setProperty("Server_online", "")
|
||||
|
||||
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||
|
||||
ConnectionManager().checkServer()
|
||||
lastProgressUpdate = datetime.today()
|
||||
startupComplete = False
|
||||
|
@ -78,7 +80,8 @@ class Service():
|
|||
lastFile = None
|
||||
|
||||
while not self.KodiMonitor.abortRequested():
|
||||
|
||||
WINDOW.setProperty("Emby_Service_Timestamp", str(int(time.time())))
|
||||
|
||||
if self.KodiMonitor.waitForAbort(1):
|
||||
# Abort was requested while waiting. We should exit
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue