minor changes
All checks were successful
Galvanic Corrosion Cross-Compile / build (push) Successful in 1m38s
All checks were successful
Galvanic Corrosion Cross-Compile / build (push) Successful in 1m38s
This commit is contained in:
@@ -9,8 +9,7 @@ for Rec Room build 1063 (Timestamp: 637191339113673856, Version: 20200306)
|
|||||||
|
|
||||||
# Disclaimer
|
# Disclaimer
|
||||||
Galvanic Corrosion and its contributors are **not** associated in **any** form with:
|
Galvanic Corrosion and its contributors are **not** associated in **any** form with:
|
||||||
* RecNet
|
* RecNet ("the RecNet platform")
|
||||||
* Rec Room
|
|
||||||
* Rec Room, Inc.
|
* Rec Room, Inc.
|
||||||
* Exit Games Inc.
|
* Exit Games Inc.
|
||||||
* Against Gravity
|
* Against Gravity
|
||||||
|
|||||||
@@ -143,14 +143,14 @@ export class SignalRSocketHandler {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.#socket.addEventListener('close', this.destroy(this));
|
this.#socket.addEventListener('close', this.destroy(this, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy(sock: SignalRSocketHandler) {
|
destroy(sock: SignalRSocketHandler, internal: boolean | undefined = false) {
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(sock.#PeriodicalId);
|
clearInterval(sock.#PeriodicalId);
|
||||||
sock.sendRaw({ type: 7, error: "Socket closed" });
|
sock.sendRaw({ type: 7, error: "Socket closed" });
|
||||||
sock.#socket.close();
|
if (!internal) sock.#socket.close();
|
||||||
sock.#log.i(`Closed socket`);
|
sock.#log.i(`Closed socket`);
|
||||||
sock.#profile.clearSocketHandler();
|
sock.#profile.clearSocketHandler();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user