From: David ‘Bombe’ Roden Date: Mon, 26 Nov 2012 14:28:36 +0000 (+0100) Subject: Download updates via the thread factory, too. X-Git-Tag: 0.8.5^2~11^2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a90c83da842c28f0e045d8a09dd3480643cd87f1;p=Sone.git Download updates via the thread factory, too. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index b481819..3408383 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -2413,7 +2413,7 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis */ @Override public void identityUpdated(OwnIdentity ownIdentity, final Identity identity) { - new Thread(new Runnable() { + soneDownloaders.execute(new Runnable() { @Override @SuppressWarnings("synthetic-access") @@ -2424,7 +2424,7 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis soneDownloader.addSone(sone); soneDownloader.fetchSone(sone); } - }).start(); + }); } /**