Skip to content

Commit 70b47b5

Browse files
authored
fix: skip waiting for ready when instance is already ready (#99)
1 parent acc9c16 commit 70b47b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

abstract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function abstractPersistence (opts) {
317317
// Wait for ready event, if applicable, to ensure the persistence isn't
318318
// destroyed while it's still being set up.
319319
// https://github.com/mcollina/aedes-persistence-redis/issues/41
320-
if (waitForReady) {
320+
if (waitForReady && !instance.ready) {
321321
await waitForEvent(instance, 'ready')
322322
}
323323
t.diagnostic('instance created')

0 commit comments

Comments
 (0)