From 4a9a61cc080c06690d1cdeabf26e5955ae65decb Mon Sep 17 00:00:00 2001 From: Philipp von Weitershausen Date: Wed, 25 Aug 2010 15:49:45 -0700 Subject: [PATCH] Bug 587027 - Use as little memory as possible (part 5) Avoid accessing Weave.Service (=importing service.js) at all cost. --- services/sync/Weave.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/sync/Weave.js b/services/sync/Weave.js index bfa28a26e868..6f21edb69004 100644 --- a/services/sync/Weave.js +++ b/services/sync/Weave.js @@ -67,7 +67,9 @@ WeaveService.prototype = { this.timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); this.timer.initWithCallback({ notify: function() { - Cu.import("resource://services-sync/service.js"); + Cu.import("resource://services-sync/main.js"); + if (Weave.Status.checkSetup() != Weave.CLIENT_NOT_CONFIGURED) + Weave.Service; } }, 10000, Ci.nsITimer.TYPE_ONE_SHOT); break;