Download updates via the thread factory, too.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 26 Nov 2012 14:28:36 +0000 (15:28 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 26 Nov 2012 14:28:36 +0000 (15:28 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index b481819..3408383 100644 (file)
@@ -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();
+               });
        }
 
        /**