don't fire the connect event until the client has finished reloading
it's methods
This commit is contained in:
parent
a579c3b2c7
commit
b4e56e923b
|
@ -196,7 +196,9 @@ Copyright:
|
|||
Deluge.Client.web.connect(id, {
|
||||
success: function(methods) {
|
||||
Deluge.Client.reloadMethods();
|
||||
Deluge.Events.fire('connect');
|
||||
Deluge.Client.on('connected', function(e) {
|
||||
Deluge.Events.fire('connect');
|
||||
}, this, {single: true});
|
||||
}
|
||||
});
|
||||
if (this.running) window.clearInterval(this.running);
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue