mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -167,11 +167,11 @@ class GdriveSync(plugins.Plugin):
|
|||||||
self.internet = True
|
self.internet = True
|
||||||
|
|
||||||
def on_handshake(self, agent):
|
def on_handshake(self, agent):
|
||||||
|
if not self.ready and not self.internet:
|
||||||
|
return
|
||||||
if self.lock.locked():
|
if self.lock.locked():
|
||||||
return
|
return
|
||||||
with self.lock:
|
with self.lock:
|
||||||
if not self.ready and not self.internet:
|
|
||||||
return
|
|
||||||
if self.status.newer_then_hours(self.options['interval']):
|
if self.status.newer_then_hours(self.options['interval']):
|
||||||
logging.debug("[update] last check happened less than %d hours ago" % self.options['interval'])
|
logging.debug("[update] last check happened less than %d hours ago" % self.options['interval'])
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user