Fix server restart event

Mark the server as offline to properly post capabilities once server is
back online
This commit is contained in:
angelblue05 2016-09-09 03:37:48 -05:00
parent bee2c78887
commit 43832696eb

View file

@ -66,7 +66,8 @@ class WebSocketClient(threading.Thread):
message_type = result['MessageType'] message_type = result['MessageType']
data = result['Data'] data = result['Data']
if message_type not in ('NotificationAdded', 'SessionEnded'): if message_type not in ('NotificationAdded', 'SessionEnded', 'RestartRequired',
'PackageInstalling'):
# Mute certain events # Mute certain events
log.info("Message: %s", message) log.info("Message: %s", message)
@ -285,6 +286,7 @@ class WebSocketClient(threading.Thread):
heading="{emby}", heading="{emby}",
message=lang(33006), message=lang(33006),
icon="{emby}") icon="{emby}")
window('emby_online', value="false")
def on_close(self, ws): def on_close(self, ws):
log.debug("closed") log.debug("closed")