aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http/www
diff options
context:
space:
mode:
authorGravatar Ippolitov A. Igor2015-10-26 13:29:16 +0300
committerGravatar Ippolitov A. Igor2015-10-26 13:29:16 +0300
commitd16b513f1c9754ab3aab415a7eb6945ae10f3174 (patch)
treed2e2e108e10ca3a920917eaa0a7c249969329417 /src/main/java/com/juick/http/www
parentd80ab1d056dd09708e0b79def811a1d5ac72c279 (diff)
sql search connection is opened and closed each time
Diffstat (limited to 'src/main/java/com/juick/http/www')
-rw-r--r--src/main/java/com/juick/http/www/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/http/www/Main.java b/src/main/java/com/juick/http/www/Main.java
index faf334c9..1cc813c9 100644
--- a/src/main/java/com/juick/http/www/Main.java
+++ b/src/main/java/com/juick/http/www/Main.java
@@ -73,7 +73,7 @@ public class Main extends HttpServlet implements Stream.StreamListener {
Class.forName("com.mysql.jdbc.Driver");
sql = DriverManager.getConnection("jdbc:mysql://localhost/juick?autoReconnect=true&user=" + conf.getProperty("mysql_username", "") + "&password=" + conf.getProperty("mysql_password", ""));
- sqlSearch = getSqlSearch();
+ sqlSearch = null; // init this on search, timeout is too low
setupXmppComponent(conf.getProperty("xmpp_password"));