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:
parent
71c572d664
commit
94890ee9a0
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user