Register device after every restart.

GitOrigin-RevId: 2eed6eafb1f38a636603b16d400cc4f7505f8a0a
This commit is contained in:
levlam 2019-08-29 03:40:18 +03:00
parent 39e8379a86
commit e18bce69a1

View File

@ -317,7 +317,10 @@ void DeviceTokenManager::start_up() {
}
token.token = serialized.substr(1);
}
LOG(INFO) << "GET device token " << token_type << "--->" << tokens_[token_type];
LOG(INFO) << "GET device token " << token_type << "--->" << token;
if (token.state == TokenInfo::State::Sync) {
token.state = TokenInfo::State::Register;
}
}
loop();
}