mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
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:
parent
1389e48831
commit
79b90c62d9
@ -48,6 +48,8 @@ public class DavGateway {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void start() {
|
public static void start() {
|
||||||
|
// register custom SSL Socket factory
|
||||||
|
DavGatewaySSLProtocolSocketFactory.register();
|
||||||
try {
|
try {
|
||||||
// prepare HTTP connection pool
|
// prepare HTTP connection pool
|
||||||
DavGatewayHttpClientFacade.start();
|
DavGatewayHttpClientFacade.start();
|
||||||
@ -96,8 +98,6 @@ public class DavGateway {
|
|||||||
DavGatewayTray.error("Exception creating server socket", e);
|
DavGatewayTray.error("Exception creating server socket", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// register custom SSL Socket factory
|
|
||||||
DavGatewaySSLProtocolSocketFactory.register();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static void stopServer(AbstractServer server) {
|
protected static void stopServer(AbstractServer server) {
|
||||||
|
Loading…
Reference in New Issue
Block a user