Browse Source

fix issue where group in store is never ready

Kieran Gibb 2 years ago
parent
commit
bbd996a3aa
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      index.js

+ 2
- 1
index.js View File

@@ -111,9 +111,10 @@ class GroupStore {
111 111
   _ready (callback) {
112 112
     var pending = 1
113 113
     var self = this
114
+    var groups = Object.values(self.groups)
114 115
 
115 116
     function next (n) {
116
-      var group = self.groups[n]
117
+      var group = groups[n]
117 118
       if (!group) return done()
118 119
       ++pending
119 120
       process.nextTick(next, n + 1)