From fcc80a85e3da35243307f30c3bd954be0cafb8ed Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 28 Feb 2025 17:43:13 +0100 Subject: [PATCH] Only send PING to registered connections on focus --- components/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index 852c3d3..d1c8f15 100644 --- a/components/app.js +++ b/components/app.js @@ -2006,7 +2006,9 @@ export default class App extends Component { this.lastFocusPingDate = now; for (let client of this.clients.values()) { - client.send({ command: "PING", params: ["gamja"] }); + if (client.status === Client.Status.REGISTERED) { + client.send({ command: "PING", params: ["gamja"] }); + } } }