From: David ‘Bombe’ Roden Date: Tue, 23 Nov 2010 09:35:25 +0000 (+0100) Subject: Use new session manager syntax. X-Git-Tag: 0.3.1-RC1~48 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=324f43ea5f33e7e99712fb240e9a75fc574db394;p=Sone.git Use new session manager syntax. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 31f9f0d..feeab46 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -21,8 +21,6 @@ import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; -import java.net.URI; -import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -208,12 +206,7 @@ public class WebInterface implements CoreListener { * @return The node’s session manager */ public SessionManager getSessionManager() { - try { - return sonePlugin.pluginRespirator().getSessionManager(new URI("/")); - } catch (URISyntaxException use1) { - logger.log(Level.SEVERE, "Could not get Session Manager!", use1); - return null; - } + return sonePlugin.pluginRespirator().getSessionManager("Sone"); } /**