reset the torrents object upon a disconnect so there aren't any errors when reconnecting
This commit is contained in:
parent
4929ba3c44
commit
21431f18e1
|
@ -248,6 +248,9 @@ Copyright:
|
|||
return this.getSelectionModel().getSelected();
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the currently selected records.
|
||||
*/
|
||||
getSelections: function() {
|
||||
return this.getSelectionModel().getSelections();
|
||||
},
|
||||
|
@ -294,6 +297,7 @@ Copyright:
|
|||
// private
|
||||
onDisconnect: function() {
|
||||
this.getStore().removeAll();
|
||||
this.torrents = {};
|
||||
},
|
||||
|
||||
// private
|
||||
|
|
Loading…
Reference in New Issue