scope buildNewOnionPathsWorker call properly

pull/1190/head
Ryan Tharp 5 years ago
parent 5678f40b9e
commit 9c1d2fad78

@ -488,10 +488,9 @@ class LokiSnodeAPI {
async buildNewOnionPaths() { async buildNewOnionPaths() {
// this function may be called concurrently make sure we only have one inflight // this function may be called concurrently make sure we only have one inflight
return primitives.allowOnlyOneAtATime( return primitives.allowOnlyOneAtATime('buildNewOnionPaths', async () => {
'buildNewOnionPaths', await this.buildNewOnionPathsWorker();
this.buildNewOnionPathsWorker });
);
} }
async getRandomSnodeAddress() { async getRandomSnodeAddress() {

Loading…
Cancel
Save