@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/servers.js
CHANGED
|
@@ -2895,10 +2895,14 @@ var Worker = class {
|
|
|
2895
2895
|
this._instancesReceived = 0;
|
|
2896
2896
|
this._instanceErrors = 0;
|
|
2897
2897
|
}
|
|
2898
|
-
/**
|
|
2898
|
+
/**
|
|
2899
|
+
* Returns the worker to idle. Context is intentionally preserved so that
|
|
2900
|
+
* late FILE_RECEIVED events (arriving in a subsequent pipe chunk after
|
|
2901
|
+
* ASSOCIATION_RELEASE) still have valid association info. Context is
|
|
2902
|
+
* cleared on the next {@link beginAssociation} call.
|
|
2903
|
+
*/
|
|
2899
2904
|
endAssociation() {
|
|
2900
2905
|
this._state = "idle";
|
|
2901
|
-
this._context = void 0;
|
|
2902
2906
|
this._files.length = 0;
|
|
2903
2907
|
this._fileSizes.length = 0;
|
|
2904
2908
|
this._outputLines.length = 0;
|
|
@@ -3508,7 +3512,9 @@ var DicomReceiver = class _DicomReceiver extends EventEmitter {
|
|
|
3508
3512
|
/** Returns worker to idle pool on association complete, emits summary. */
|
|
3509
3513
|
wireAssociationComplete(worker) {
|
|
3510
3514
|
worker.dcmrecv.onAssociationComplete((data) => {
|
|
3511
|
-
|
|
3515
|
+
setImmediate(() => {
|
|
3516
|
+
void this.finalizeAssociation(worker, data);
|
|
3517
|
+
});
|
|
3512
3518
|
});
|
|
3513
3519
|
}
|
|
3514
3520
|
/** Awaits file ops, emits ASSOCIATION_COMPLETE, awaits parsing, emits ASSOCIATION_FINALIZED. */
|