Commit 1f557666 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Catch throwable errors instead of exception.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3638 b35dd754-fafc-0310-a699-88a17e54d16e
parent dc5af4fa
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
package org.jivesoftware.wildfire.net; package org.jivesoftware.wildfire.net;
import org.jivesoftware.wildfire.ConnectionManager; import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.wildfire.ServerPort;
import org.jivesoftware.util.LocaleUtils; import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.util.JiveGlobals; import org.jivesoftware.wildfire.ConnectionManager;
import org.jivesoftware.wildfire.ServerPort;
import javax.net.ssl.SSLException; import javax.net.ssl.SSLException;
import java.io.IOException; import java.io.IOException;
...@@ -165,7 +165,7 @@ public class SSLSocketAcceptThread extends Thread { ...@@ -165,7 +165,7 @@ public class SSLSocketAcceptThread extends Thread {
shutdown(); shutdown();
} }
} }
catch (Exception e) { catch (Throwable e) {
if (notTerminated) { if (notTerminated) {
Log.error(LocaleUtils.getLocalizedString("admin.error.ssl"), e); Log.error(LocaleUtils.getLocalizedString("admin.error.ssl"), e);
} }
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
package org.jivesoftware.wildfire.net; package org.jivesoftware.wildfire.net;
import org.jivesoftware.wildfire.ConnectionManager; import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.wildfire.ServerPort;
import org.jivesoftware.util.LocaleUtils; import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.util.JiveGlobals; import org.jivesoftware.wildfire.ConnectionManager;
import org.jivesoftware.wildfire.ServerPort;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
...@@ -134,7 +134,7 @@ public class SocketAcceptThread extends Thread { ...@@ -134,7 +134,7 @@ public class SocketAcceptThread extends Thread {
ie); ie);
} }
} }
catch (Exception e) { catch (Throwable e) {
Log.error(LocaleUtils.getLocalizedString("admin.error.accept"), e); Log.error(LocaleUtils.getLocalizedString("admin.error.accept"), e);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment