Skip to content

Commit

Permalink
Don't strand users with <=1 connections
Browse files Browse the repository at this point in the history
  • Loading branch information
cpfair committed Sep 16, 2014
1 parent 4a757c5 commit fe41c1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tapiriik/sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,8 @@ def Run(self, exhaustive=False, null_next_sync_on_unlock=False, heartbeat_callba
from tapiriik.services.interchange import ActivityStatisticUnit

if len(self.user["ConnectedServices"]) <= 1:
return # Done and done!
self._unlockUser(null_next_sync_on_unlock)
return

sync_result = SynchronizationTaskResult()

Expand Down

0 comments on commit fe41c1e

Please sign in to comment.