Remove own thread from page, the Core handles that now.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 10:01:20 +0000 (12:01 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 10:01:20 +0000 (12:01 +0200)
src/main/java/net/pterodactylus/sone/web/AddSonePage.java

index 92b9407..3d5d1f9 100644 (file)
@@ -49,16 +49,7 @@ public class AddSonePage extends SoneTemplatePage {
        protected void processTemplate(Request request, Template template) throws RedirectException {
                super.processTemplate(request, template);
                final String soneKey = request.getHttpRequest().getPartAsStringFailsafe("request-uri", 256);
-               new Thread(new Runnable() {
-
-                       /**
-                        * {@inheritDoc}
-                        */
-                       @Override
-                       public void run() {
-                               webInterface.core().loadSone(soneKey);
-                       }
-               }, "Sone Downloader").start();
+               webInterface.core().loadSone(soneKey);
        }
 
 }