fix: Complete the disconnection before redirecting to the login screen

Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/129
This commit is contained in:
Internal Server Error - Amine's git
500 Internal Server Error

Gitea Version: 1.28.0+dev-492-g1280de5704