Skip to content

Commit

Permalink
resuming uploaders when back from network broken
Browse files Browse the repository at this point in the history
  • Loading branch information
lazywalker committed Jan 14, 2021
1 parent 9d4d248 commit 21e0133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions digiskr/pskreporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ def spot(self, spot):
pass
else:
self.spots.append(spot)
self.scheduleNextUpload()
self.scheduleNextUpload()

def upload(self):
try:
with self.spotLock:
self.timer = None
spots = self.spots
self.spots = []
if spots:
self.uploader.upload(spots)
self.savelog(spots)
self.timer = None
except Exception:
logging.exception("Failed to upload spots")

Expand Down

0 comments on commit 21e0133

Please sign in to comment.