From: David ‘Bombe’ Roden Date: Sat, 16 Oct 2010 10:01:20 +0000 (+0200) Subject: Remove own thread from page, the Core handles that now. X-Git-Tag: 0.1-RC1~275 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f04178199732093e3e0b74a9243ac2fc0da8ea52;p=Sone.git Remove own thread from page, the Core handles that now. --- 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); } }