@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.cjs
CHANGED
|
@@ -2920,10 +2920,14 @@ var Worker = class {
|
|
|
2920
2920
|
this._instancesReceived = 0;
|
|
2921
2921
|
this._instanceErrors = 0;
|
|
2922
2922
|
}
|
|
2923
|
-
/**
|
|
2923
|
+
/**
|
|
2924
|
+
* Returns the worker to idle. Context is intentionally preserved so that
|
|
2925
|
+
* late FILE_RECEIVED events (arriving in a subsequent pipe chunk after
|
|
2926
|
+
* ASSOCIATION_RELEASE) still have valid association info. Context is
|
|
2927
|
+
* cleared on the next {@link beginAssociation} call.
|
|
2928
|
+
*/
|
|
2924
2929
|
endAssociation() {
|
|
2925
2930
|
this._state = "idle";
|
|
2926
|
-
this._context = void 0;
|
|
2927
2931
|
this._files.length = 0;
|
|
2928
2932
|
this._fileSizes.length = 0;
|
|
2929
2933
|
this._outputLines.length = 0;
|
|
@@ -3533,7 +3537,9 @@ var DicomReceiver = class _DicomReceiver extends events.EventEmitter {
|
|
|
3533
3537
|
/** Returns worker to idle pool on association complete, emits summary. */
|
|
3534
3538
|
wireAssociationComplete(worker) {
|
|
3535
3539
|
worker.dcmrecv.onAssociationComplete((data) => {
|
|
3536
|
-
|
|
3540
|
+
setImmediate(() => {
|
|
3541
|
+
void this.finalizeAssociation(worker, data);
|
|
3542
|
+
});
|
|
3537
3543
|
});
|
|
3538
3544
|
}
|
|
3539
3545
|
/** Awaits file ops, emits ASSOCIATION_COMPLETE, awaits parsing, emits ASSOCIATION_FINALIZED. */
|