From 8a096e537c138da1f6d4a086342fe6813b090578 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 23 Aug 2018 02:52:54 -0400 Subject: [PATCH] PyLinkNCWUtils: add "ignore_ts_errors" server option to suppress bogus TS warnings --- classes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes.py b/classes.py index 8c5ea91..0ced7db 100644 --- a/classes.py +++ b/classes.py @@ -1474,7 +1474,10 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore): elif (their_ts < our_ts): if their_ts < 750000: if their_ts != 0: # Sometimes unreal sends SJOIN with 0, don't warn for those - log.warning('(%s) Possible desync? Not setting bogus TS %s on channel %s', self.name, their_ts, channel) + if self.serverdata.get('ignore_ts_errors'): + log.debug('(%s) Silently ignoring bogus TS %s on channel %s', self.name, their_ts, channel) + else: + log.warning('(%s) Possible desync? Not setting bogus TS %s on channel %s', self.name, their_ts, channel) else: log.debug('(%s) Resetting channel TS of %s from %s to %s (remote has lower TS)', self.name, channel, our_ts, their_ts)