From 064be2691c92770e60d47762a79b04d851f610eb Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 18 Feb 2023 15:33:05 -0800 Subject: [PATCH] Cleanup pulseaudio threads on unexpected disconnect --- index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 51aeede..26259e8 100644 --- a/index.js +++ b/index.js @@ -162,6 +162,7 @@ aio.on('connection', function (socket) { // Incoming socket requests socket.on('open', open); socket.on('close', close); + socket.on('disconnect', close); }); // Spin up application on 6900 diff --git a/package.json b/package.json index 480d00c..04d81c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kclient", - "version": "0.3.0", + "version": "0.3.1", "description": "Kclient is a wrapper for KasmVNC to add functionality to a containerized environment", "main": "index.js", "dependencies": {