3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 04:59:24 +01:00

PyLinkNCWUtils: add "ignore_ts_errors" server option to suppress bogus TS warnings

This commit is contained in:
James Lu 2018-08-23 02:52:54 -04:00
parent dda8a2a081
commit 8a096e537c

View File

@ -1474,6 +1474,9 @@ 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
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)',