cancel and close previous client sessions

This commit is contained in:
yggverse 2024-11-30 18:52:59 +02:00
parent 072e6c3e7c
commit cca3e4daa6

View file

@ -72,6 +72,16 @@ impl Session {
}
}
}
// Cancel previous session operations
if let Err(e) = connection.cancel() {
return Err(Error::Connection(e));
}
// Close previous session connection
if let Err(e) = connection.close() {
return Err(Error::Connection(e));
}
}
Ok(()) // @TODO result does nothing yet
}