mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
add connection cancel request
This commit is contained in:
parent
559e03f904
commit
c12c57cc99
1 changed files with 6 additions and 1 deletions
|
|
@ -68,7 +68,12 @@ impl Session {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close connection if active yet
|
// 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() {
|
if let Err(e) = connection.close() {
|
||||||
return Err(Error::Connection(e));
|
return Err(Error::Connection(e));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue