improve the connection manager

This commit is contained in:
Damien Churchill 2009-08-11 23:43:56 +00:00
parent 3e8c17b071
commit 6b8ff92fe2
1 changed files with 1 additions and 5 deletions

View File

@ -302,12 +302,8 @@ Copyright:
},
onGetHosts: function(hosts) {
var store = this.grid.getStore();
this.grid.getStore().loadData(hosts);
Ext.each(hosts, function(host) {
var record = store.getById(host[0]);
if (!record) {
store.loadData([host], true);
}
Deluge.Client.web.get_host_status(host[0], {
success: this.onGetHostStatus,
scope: this