Skip to content

Commit

Permalink
Add timeout to wait certificates loaded
Browse files Browse the repository at this point in the history
PR-URL: #1836
  • Loading branch information
tshemsedinov committed Jun 5, 2023
1 parent a9834b6 commit b94f6bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ class Application extends events.EventEmitter {
const certPath = path.join(this.path, 'cert');
const changed = changes.some(([name]) => name.startsWith(certPath));
if (!changed) return;
this.cert.after(changes);
setTimeout(() => {
this.cert.after(changes);
}, timeout);
if (threadId === 1) this.console.debug('New certificates for: *');
});
}
Expand Down

0 comments on commit b94f6bd

Please sign in to comment.