mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-31 03:50:11 -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))
|
||||
|
||||
if pong_count >= plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
|
||||
pong_count = 0
|
||||
close()
|
||||
|
||||
|
||||
def receive_pong():
|
||||
# logger.debug(u"Tautulli WebSocket :: Received pong.")
|
||||
global pong_timer
|
||||
global pong_count
|
||||
if pong_timer:
|
||||
pong_timer = pong_timer.cancel()
|
||||
pong_count = 0
|
||||
|
||||
|
||||
def run():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue