Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function abstractPersistence (opts) {
// Wait for ready event, if applicable, to ensure the persistence isn't
// destroyed while it's still being set up.
// https://github.com/mcollina/aedes-persistence-redis/issues/41
if (waitForReady) {
if (waitForReady && !instance.ready) {
await waitForEvent(instance, 'ready')
}
t.diagnostic('instance created')
Expand Down