| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-06-24 17:58:34 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-06-24 17:58:34 UTC |
| parent | d0019c2ae332c80d577207b018778f6c70e4d855 |
| snikket/Client.hx | +4 | -0 |
diff --git a/snikket/Client.hx b/snikket/Client.hx index 42999e1..2284a9f 100644 --- a/snikket/Client.hx +++ b/snikket/Client.hx @@ -579,6 +579,10 @@ class Client extends EventEmitter { Gets the client ready to use but does not connect to the server **/ public function startOffline(ready: ()->Void) { + #if cpp + // Do a big GC before starting a new client + cpp.NativeGc.run(true); + #end persistence.getLogin(accountId(), (clientId, loadedToken, loadedFastCount, displayName) -> { token = loadedToken; fastCount = loadedFastCount;