fix issue with remote desktop inputs and move ping to async to prevent any issues with clients disconnecting from it.

This commit is contained in:
KingKDot
2026-04-06 18:04:45 -05:00
parent 9f876b5828
commit feb1c66526
4 changed files with 28 additions and 16 deletions
@@ -729,6 +729,9 @@ export function handleWebSocketClose(
setOnlineState(clientId, false, storedDisconnectReason, storedDisconnectDetail);
deps.clearPendingNotificationScreenshots(clientId);
deps.clearClientPluginState(clientId);
deps.rdStreamingState.delete(clientId);
deps.hvncStreamingState.delete(clientId);
deps.webcamStreamingState.delete(clientId);
deps.notifyDashboard();
logger.info(`[close] ${clientId} code=${code} reason=${reason} disconnect_reason=${storedDisconnectReason || "unknown"}`);