Register socket factory *before* listener threads start to avoid exception on first client connection

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@310 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-02-02 07:14:25 +00:00
parent 1389e48831
commit 79b90c62d9
1 changed files with 2 additions and 2 deletions

View File

@ -48,6 +48,8 @@ public class DavGateway {
}
public static void start() {
// register custom SSL Socket factory
DavGatewaySSLProtocolSocketFactory.register();
try {
// prepare HTTP connection pool
DavGatewayHttpClientFacade.start();
@ -96,8 +98,6 @@ public class DavGateway {
DavGatewayTray.error("Exception creating server socket", e);
}
// register custom SSL Socket factory
DavGatewaySSLProtocolSocketFactory.register();
}
protected static void stopServer(AbstractServer server) {