session: Make sure to close session with invalid token

This commit is contained in:
Julian Sparber 2022-01-12 21:30:51 +01:00
parent e7a4585ce7
commit 8140725603
1 changed files with 1 additions and 0 deletions

View File

@ -673,6 +673,7 @@ impl Session {
{
match error.kind {
ErrorKind::UnknownToken { soft_logout: _ } => {
self.emit_by_name("logged-out", &[]).unwrap();
self.cleanup_session();
}
_ => {}