mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Reset pong count
This commit is contained in:
parent
c5e37badd8
commit
8514cf1975
1 changed files with 3 additions and 0 deletions
|
@ -112,14 +112,17 @@ def wait_pong():
|
||||||
logger.warning(u"Tautulli WebSocket :: Failed to receive pong from websocket, ping attempt %s." % str(pong_count))
|
logger.warning(u"Tautulli WebSocket :: Failed to receive pong from websocket, ping attempt %s." % str(pong_count))
|
||||||
|
|
||||||
if pong_count >= plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
|
if pong_count >= plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
|
||||||
|
pong_count = 0
|
||||||
close()
|
close()
|
||||||
|
|
||||||
|
|
||||||
def receive_pong():
|
def receive_pong():
|
||||||
# logger.debug(u"Tautulli WebSocket :: Received pong.")
|
# logger.debug(u"Tautulli WebSocket :: Received pong.")
|
||||||
global pong_timer
|
global pong_timer
|
||||||
|
global pong_count
|
||||||
if pong_timer:
|
if pong_timer:
|
||||||
pong_timer = pong_timer.cancel()
|
pong_timer = pong_timer.cancel()
|
||||||
|
pong_count = 0
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue