Fix infinite loop bug in previous commit
This commit is contained in:
1 parent
445b01e895
commit
344f4270f2
1 file changed
+3
-2
+3
-2
@@ -53,11 +53,12 @@ function runExtension(sessionContext, key, extCall, callback) {
|
||||
else {
|
||||
re[key] = [callback];
|
||||
extensions.run(extCall, function(err, fault, res) {
|
||||
const callbacks = re[key];
|
||||
delete re[key];
|
||||
if (!err && !fault)
|
||||
sessionContext.extensionsCache[key] = res;
|
||||
for (let c of re[key])
|
||||
for (let c of callbacks)
|
||||
c(err, fault);
|
||||
delete re[key];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user