Fixed method
This commit is contained in:
parent
cf1e6f0602
commit
74182ab00d
|
@ -64,10 +64,14 @@ public class SecretManager {
|
||||||
currentSecretHolder.set();
|
currentSecretHolder.set();
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void endSession() throws Exception {
|
public synchronized void endSession() {
|
||||||
if (currentSecretHolder != initialSecretHolder) {
|
if (currentSecretHolder != initialSecretHolder) {
|
||||||
currentSecretHolder.reset();
|
currentSecretHolder.reset();
|
||||||
|
try {
|
||||||
initialSecretHolder.set();
|
initialSecretHolder.set();
|
||||||
|
}catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
currentSecretHolder = initialSecretHolder;
|
currentSecretHolder = initialSecretHolder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue