oops fix syntax error
authorDan Mills <thunder@mozilla.com>
Tue, 10 Feb 2009 17:57:29 -0800
changeset 45237 1d96c888d733a3176b6c5e9a44a94c6f428700e8
parent 45236 99bd435ddffc1f8d224034bec5fbc11e794cebb1
child 45240 be0e051bd478c6df4374b5e58a010a890cba84aa
push idunknown
push userunknown
push dateunknown
oops fix syntax error
services/sync/modules/service.js
--- a/services/sync/modules/service.js
+++ b/services/sync/modules/service.js
@@ -429,18 +429,19 @@ WeaveSvc.prototype = {
 
   // gets cluster from central LDAP server and sets this.clusterURL
   findCluster: function WeaveSvc_findCluster(onComplete, username) {
     let fn = function WeaveSvc__findCluster() {
       let self = yield;
       let ret = false;
 
       this._log.debug("Finding cluster for user " + username);
+
+      let res = new Resource(this.baseURL + "api/register/chknode/" + username);
       try {
-	let res = new Resource(this.baseURL + "api/register/chknode/" + username);
 	yield res.get(self.cb);
       } catch (e) { /* we check status below */ }
 
       if (res.lastChannel.responseStatus == 404) {
         this._log.debug("Using serverURL as data cluster (multi-cluster support disabled)");
         this.clusterURL = Svc.Prefs.get("serverURL");
         ret = true;