forked from CringeStudios/gamja
Only send PING to registered connections on focus
This commit is contained in:
parent
76b6931ebb
commit
fcc80a85e3
@ -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"] });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user