# fix\(desktop\): flush imported cookies to disk before reporting done · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/ceee903e9b8a9cb05f99261246cf68778c1d1493)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: ceee903e9b8a9cb05f99261246cf68778c1d1493

Requested commit: ceee903e9b8a9cb05f99261246cf68778c1d1493

Commit: ceee903e9b8a9cb05f99261246cf68778c1d1493

Tree: 244056534713f388def4c295dd9a83c112a9a023

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): flush imported cookies to disk before reporting done

cookies.set resolves once the cookie is in memory; Chromium persists the
store on its own schedule, so a crash right after the wizard said Done
could drop the import. Flush once after the writes; a failed flush is
logged, not surfaced, since the cookies are in the session regardless.

```

## Parents

- [5ca6e11d30d661c79ffc3869bf935b3ccd576425](https://git.cafe/pingdotgg/t3code/commit/5ca6e11d30d661c79ffc3869bf935b3ccd576425?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/ceee903e9b8a9cb05f99261246cf68778c1d1493?format=markdown)
