3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-28 05:29:25 +01:00

updateTS: silently ignore messages with ts = 0

Closes #625.
This commit is contained in:
James Lu 2018-08-19 19:41:29 -04:00
parent 6a2a6a769f
commit 49badd1665

View File

@ -1473,6 +1473,7 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
elif (their_ts < our_ts): elif (their_ts < our_ts):
if their_ts < 750000: 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) log.warning('(%s) Possible desync? Not setting bogus TS %s on channel %s', self.name, their_ts, channel)
else: else:
log.debug('(%s) Resetting channel TS of %s from %s to %s (remote has lower TS)', log.debug('(%s) Resetting channel TS of %s from %s to %s (remote has lower TS)',