@cordfuse/llmux 0.12.3 → 0.12.4
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.js +5 -0
- package/package.json +1 -1
- package/src/client/client.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -3373,6 +3373,11 @@ var attach = {
|
|
|
3373
3373
|
stdin.removeAllListeners("data");
|
|
3374
3374
|
process.removeAllListeners("SIGWINCH");
|
|
3375
3375
|
ws?.close();
|
|
3376
|
+
stdin.pause();
|
|
3377
|
+
try {
|
|
3378
|
+
stdin.unref();
|
|
3379
|
+
} catch {
|
|
3380
|
+
}
|
|
3376
3381
|
}
|
|
3377
3382
|
function sendResize() {
|
|
3378
3383
|
if (!stdout.isTTY) return;
|
package/package.json
CHANGED
package/src/client/client.ts
CHANGED
|
@@ -603,6 +603,9 @@ const attach: ClientCommand = {
|
|
|
603
603
|
stdin.removeAllListeners('data');
|
|
604
604
|
process.removeAllListeners('SIGWINCH');
|
|
605
605
|
ws?.close();
|
|
606
|
+
// Release stdin from holding the event loop open.
|
|
607
|
+
stdin.pause();
|
|
608
|
+
try { stdin.unref(); } catch {}
|
|
606
609
|
}
|
|
607
610
|
|
|
608
611
|
function sendResize(): void {
|