Skip to content

Commit

Permalink
Remove old workaround for unreliable port connections in Kee Vault
Browse files Browse the repository at this point in the history
Shouldn't have any impact but it makes sense to keep this behaviour
similar to page.ts
  • Loading branch information
luckyrat committed Feb 18, 2021
1 parent 0b21dc1 commit 01cd520
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vault/vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function startup() {
}

messagingPortConnectionRetryTimer = setInterval(() => {
if (Port.raw == null || !connected) {
if (Port.raw == null) {
KeeLog.info("Messaging port was not established at vault startup. Retrying now...");
try {
Background.connect();
Expand Down Expand Up @@ -215,7 +215,12 @@ let syncContent: SyncContent;
class Background {
public static connect() {
if (Port.raw) {
KeeLog.warn("port already set to: " + Port.raw.name);
KeeLog.warn(
"port already set to '" +
Port.raw.name +
"'. Skipping startup because it should already be underway but is taking a long time."
);
return;
}
syncContent = new SyncContent(store);
Port.startup("vault");
Expand Down

0 comments on commit 01cd520

Please sign in to comment.