Skip to content

Commit

Permalink
fix: series match iterator proxy is not working
Browse files Browse the repository at this point in the history
# Problems
- line 163: Incorrect property
- line 166: missing seriesQueryTask
  • Loading branch information
Chinlinlee committed Nov 17, 2023
1 parent 3bbcfec commit 320896f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dimse/seriesQueryTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ class SeriesMatchIteratorProxy {
}

get() {
return createQueryTaskInjectProxy(this.getProxyMethods());
return createQueryTaskInjectProxy(this.getProxyMethods(), {
keepAsDaemon: true
});
}

getProxyMethods() {
Expand All @@ -158,12 +160,12 @@ class SeriesMatchIteratorProxy {
await returnAttr.addAll(this.seriesQueryTask.studyAttr, true);
await returnAttr.addAll(this.seriesQueryTask.seriesAttr, true);

await this.seriesQueryTask.seriesQueryTaskProxy.wrappedFindNextSeries();
await this.seriesQueryTask.seriesQueryTaskInjectProxy.wrappedFindNextSeries();

return returnAttr;
},
adjust: async (match) => {
return this.patientAdjust(match);
return this.seriesQueryTask.patientAdjust(match);
}
};
}
Expand Down

0 comments on commit 320896f

Please sign in to comment.