Skip to content
Snippets Groups Projects
Commit ae341b9b authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #503 from nextcloud/fix/background-sync-single-account

Fix background sync account selection
parents eac80257 151e2202
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,9 @@ define(function(require) {
_timer = setTimeout(function() {
var account;
if (require('state').accounts.length === 0) {
// Nothing to do right now, just re-trigger the sync event
triggerNextSync();
} else if (require('state').accounts.length === 1) {
account = _accounts.first();
} else {
account = _accounts.get(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment