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