You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Daemon doesn't close clients on shutdown or after a failed first connect #34
Found while fixing #16. closeClientSafe now calls destroy() (mtcute 0.32 has no close()), but two paths still leave clients open:
disconnectAllAccounts (graceful shutdown) never closes the accounts' clients, so session storage isn't flushed and closed. That can leave update state stale for the next start.
connectAccount doesn't close the client when the first start() or getMe() fails.
Fix: close every client through closeClientSafe in both paths.
Done when unit tests show destroy() called once per client on shutdown and after a failed connect.
Activity
docs: add the changelog entries for the 0.4.0 bug fixes