mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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, {
|
||||
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…
Add table
Reference in a new issue