@ubercode/dcmtk 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/servers.cjs +9 -3
- package/dist/servers.cjs.map +1 -1
- package/dist/servers.js +9 -3
- package/dist/servers.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -36549,10 +36549,14 @@ var Worker = class {
|
|
|
36549
36549
|
this._instancesReceived = 0;
|
|
36550
36550
|
this._instanceErrors = 0;
|
|
36551
36551
|
}
|
|
36552
|
-
/**
|
|
36552
|
+
/**
|
|
36553
|
+
* Returns the worker to idle. Context is intentionally preserved so that
|
|
36554
|
+
* late FILE_RECEIVED events (arriving in a subsequent pipe chunk after
|
|
36555
|
+
* ASSOCIATION_RELEASE) still have valid association info. Context is
|
|
36556
|
+
* cleared on the next {@link beginAssociation} call.
|
|
36557
|
+
*/
|
|
36553
36558
|
endAssociation() {
|
|
36554
36559
|
this._state = "idle";
|
|
36555
|
-
this._context = void 0;
|
|
36556
36560
|
this._files.length = 0;
|
|
36557
36561
|
this._fileSizes.length = 0;
|
|
36558
36562
|
this._outputLines.length = 0;
|
|
@@ -37162,7 +37166,9 @@ var DicomReceiver = class _DicomReceiver extends events.EventEmitter {
|
|
|
37162
37166
|
/** Returns worker to idle pool on association complete, emits summary. */
|
|
37163
37167
|
wireAssociationComplete(worker) {
|
|
37164
37168
|
worker.dcmrecv.onAssociationComplete((data) => {
|
|
37165
|
-
|
|
37169
|
+
setImmediate(() => {
|
|
37170
|
+
void this.finalizeAssociation(worker, data);
|
|
37171
|
+
});
|
|
37166
37172
|
});
|
|
37167
37173
|
}
|
|
37168
37174
|
/** Awaits file ops, emits ASSOCIATION_COMPLETE, awaits parsing, emits ASSOCIATION_FINALIZED. */
|