From f04178199732093e3e0b74a9243ac2fc0da8ea52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 16 Oct 2010 12:01:20 +0200 Subject: [PATCH] Remove own thread from page, the Core handles that now. --- src/main/java/net/pterodactylus/sone/web/AddSonePage.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/AddSonePage.java b/src/main/java/net/pterodactylus/sone/web/AddSonePage.java index 92b9407..3d5d1f9 100644 --- a/src/main/java/net/pterodactylus/sone/web/AddSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/AddSonePage.java @@ -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); } } -- 2.7.4