Fix updating server_time_diff.
GitOrigin-RevId: dfc1b558a4724a49daef145bc69f5a8f3d834124
This commit is contained in:
parent
5efaf8c3b5
commit
1dfeb5d176
@ -110,7 +110,7 @@ Status Global::init(const TdParameters ¶meters, ActorId<Td> td, unique_ptr<T
|
||||
<< tag("saved_system_time", saved_diff.system_time) << tag("system_time", system_time);
|
||||
}
|
||||
diff += time_backwards_fix;
|
||||
} else {
|
||||
} else if (saved_diff.system_time != 0) {
|
||||
const double MAX_TIME_FORWARD = 367 * 86400; // if more than 1 year has passed, the session is logged out anyway
|
||||
if (saved_diff.system_time + MAX_TIME_FORWARD < system_time) {
|
||||
double time_forward_fix = system_time - (saved_diff.system_time + MAX_TIME_FORWARD);
|
||||
|
Reference in New Issue
Block a user