Changeset 660
- Timestamp:
- 2007-12-04 01:49:46 (1 year ago)
- Files:
-
- sandbox/serverswitcher/chrome/content/manager.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/serverswitcher/chrome/content/manager.js
r659 r660 114 114 cset[host] = new SSWItem(host); 115 115 } 116 else { 117 ++cset[host].n; 118 } 116 ++cset[host].n; 119 117 }, 120 118 this … … 126 124 } 127 125 let host = d._ssw_host; 128 if (host in cset) { 129 cset[host].downloads.push(d); 130 } 131 else { 126 if (!(host in cset)) { 132 127 cset[host] = new SSWItem(host); 133 128 } 129 cset[host].downloads.push(d); 134 130 } 135 136 131 for (d in SSW._generator(cset)) { 137 132 if (this._running.length >= Prefs.maxInProgress) { … … 141 136 this.run(d); 142 137 } 143 144 138 return rv; 145 139 } catch(ex){ … … 175 169 function SSWItem(host) { 176 170 this.host = host; 177 this.n = 1;171 this.n = 0; 178 172 this.downloads = []; 179 173 }; … … 188 182 function() { 189 183 if (!('_ssw_real_host' in this)) { 190 this._ssw_real_host = _ssw_getHost(IOService.newURI(this.urlManager.url, null, null).host);184 this._ssw_real_host = SSW.getHost(IOService.newURI(this.urlManager.url, null, null).host); 191 185 } 192 186 return this._ssw_real_host;
