fix timezone may change after reboot

in some distros, the timezone may change after rebooting, so current
boot time is smaller than last time. Comparing with equal to avoid
timeout.
This commit is contained in:
Chi Song 2020-12-14 16:36:56 +08:00
Родитель 5e5ccbea2c
Коммит 1698a68118
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -64,7 +64,7 @@ class Reboot(Tool):
connected: bool = False
while (
last_boot_time >= current_boot_time and timer.elapsed(False) < self.time_out
last_boot_time == current_boot_time and timer.elapsed(False) < self.time_out
):
try:
self.node.close()