HADOOP-18279. Cancel fileMonitoringTimer even if trustManager isn't defined (#4789)
Co-authored-by: Steve Vaughan Jr <s_vaughan@apple.com>
This commit is contained in:
parent
f3fa4af5dc
commit
7b6a69faaa
@ -319,8 +319,10 @@ String getPassword(Configuration conf, String alias, String defaultPass) {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public synchronized void destroy() {
|
public synchronized void destroy() {
|
||||||
if (trustManager != null) {
|
if (fileMonitoringTimer != null) {
|
||||||
fileMonitoringTimer.cancel();
|
fileMonitoringTimer.cancel();
|
||||||
|
}
|
||||||
|
if (trustManager != null) {
|
||||||
trustManager = null;
|
trustManager = null;
|
||||||
keyManagers = null;
|
keyManagers = null;
|
||||||
trustManagers = null;
|
trustManagers = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user