mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
cancel and close previous client sessions
This commit is contained in:
parent
072e6c3e7c
commit
cca3e4daa6
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue