1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-12 10:42:21 -05:00

LDAP: cancel search threads on connection close

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1671 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-05-05 20:16:19 +00:00
parent 71c572d664
commit 94890ee9a0

View File

@ -583,6 +583,13 @@ public class LdapConnection extends AbstractConnection {
DavGatewayTray.debug(new BundleMessage("LOG_EXCEPTION_SENDING_ERROR_TO_CLIENT"), e2);
}
throw e;
} finally {
// cancel all search threads
synchronized (searchThreadMap) {
for (SearchRunnable searchRunnable:searchThreadMap.values()) {
searchRunnable.abandon();
}
}
}
}