From c95cabe5efe45dc2bb48f08a5f7fcc9cb9af587f Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sun, 15 Oct 2023 22:30:49 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/gdrivesync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/gdrivesync.py b/pwnagotchi/plugins/default/gdrivesync.py index a02c5e27..e39ebf22 100644 --- a/pwnagotchi/plugins/default/gdrivesync.py +++ b/pwnagotchi/plugins/default/gdrivesync.py @@ -167,11 +167,11 @@ class GdriveSync(plugins.Plugin): self.internet = True def on_handshake(self, agent): + if not self.ready and not self.internet: + return if self.lock.locked(): return with self.lock: - if not self.ready and not self.internet: - return if self.status.newer_then_hours(self.options['interval']): logging.debug("[update] last check happened less than %d hours ago" % self.options['interval']) return