mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
don't fire the connect event until the client has finished reloading
it's methods
This commit is contained in:
parent
a579c3b2c7
commit
b4e56e923b
2 changed files with 4 additions and 2 deletions
|
@ -196,7 +196,9 @@ Copyright:
|
||||||
Deluge.Client.web.connect(id, {
|
Deluge.Client.web.connect(id, {
|
||||||
success: function(methods) {
|
success: function(methods) {
|
||||||
Deluge.Client.reloadMethods();
|
Deluge.Client.reloadMethods();
|
||||||
|
Deluge.Client.on('connected', function(e) {
|
||||||
Deluge.Events.fire('connect');
|
Deluge.Events.fire('connect');
|
||||||
|
}, this, {single: true});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (this.running) window.clearInterval(this.running);
|
if (this.running) window.clearInterval(this.running);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue