Skip to content

Commit 161c847

Browse files
committed
Keep user keys alive.
1 parent 790a3a4 commit 161c847

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

hub/src/main/java/cloud/katta/protocols/hub/HubSession.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,7 @@ public void login(final LoginCallback prompt, final CancelCallback cancel) throw
185185
}
186186
}
187187
// Ensure vaults are registered
188-
try {
189-
vaults = new HubVaultListService(this, prompt).list(Home.root(), new DisabledListProgressListener());
190-
}
191-
finally {
192-
log.debug("Destroyed user keys {}", userKeys);
193-
// Short-lived
194-
userKeys.destroy();
195-
}
188+
vaults = new HubVaultListService(this, prompt).list(Home.root(), new DisabledListProgressListener());
196189
}
197190
catch(ApiException e) {
198191
throw new HubExceptionMappingService().map(e);

0 commit comments

Comments
 (0)