GramJs: Fix exception "to is not defined"

This commit is contained in:
Alexander Zinchuk 2021-06-27 19:09:22 +03:00
parent c218e38abc
commit 7e453c788c

View File

@ -645,7 +645,7 @@ class MTProtoSender {
this._updateCallback(new UpdateServerTimeOffset(newTimeOffset));
}
this._log.info(`System clock is wrong, set time offset to ${to}s`);
this._log.info(`System clock is wrong, set time offset to ${newTimeOffset}s`);
} else if (badMsg.errorCode === 32) {
// msg_seqno too low, so just pump it up by some "large" amount
// TODO A better fix would be to start with a new fresh session ID