Fix speed not being set on first announce event (bandwith dispatcher was not the first listener)

This commit is contained in:
anthonyraymond 2017-08-23 21:53:57 +02:00
parent 5101ab5431
commit ec63efbe37
6 changed files with 8 additions and 5 deletions

View file

@ -81,8 +81,8 @@ public class Client implements AnnouncerEventListener, TorrentFileChangeAware {
private void addSeedingTorrent(final MockedTorrent torrent) {
final Announcer announcer = new Announcer(torrent, this.self, this.bitTorrentClient, publisher);
announcer.registerEventListener(this);
announcer.registerEventListener(bandwidthDispatcher);
announcer.registerEventListener(this);
this.announcers.add(announcer);
logger.debug("Added announcer for Torrent {}", torrent.getName());

View file

@ -1,8 +1,8 @@
{
"main.css": "static/css/main.efeb709c.css",
"main.css.map": "static/css/main.efeb709c.css.map",
"main.js": "static/js/main.deacd611.js",
"main.js.map": "static/js/main.deacd611.js.map",
"main.js": "static/js/main.f24ac9c8.js",
"main.js.map": "static/js/main.f24ac9c8.js.map",
"static\\media\\fontawesome-webfont.eot?v=4.7.0": "static/media/fontawesome-webfont.674f50d2.eot",
"static\\media\\fontawesome-webfont.svg?v=4.7.0": "static/media/fontawesome-webfont.912ec66d.svg",
"static\\media\\fontawesome-webfont.ttf?v=4.7.0": "static/media/fontawesome-webfont.b06871f2.ttf",

View file

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="referrer" content="no-referrer"><meta name="robots" content="noindex, nofollow"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>JOAL ui - development build</title><link href="./static/css/main.efeb709c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="./static/js/main.deacd611.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="referrer" content="no-referrer"><meta name="robots" content="noindex, nofollow"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><title>JOAL ui - development build</title><link href="./static/css/main.efeb709c.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="./static/js/main.f24ac9c8.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long