mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
fix cancellation construction
This commit is contained in:
parent
99583aa719
commit
2df9f36599
1 changed files with 4 additions and 1 deletions
|
|
@ -64,7 +64,10 @@ impl Connection {
|
|||
/// * return `Error` on `Cancellable` not found
|
||||
pub fn cancel(&self) -> Result<(), Error> {
|
||||
match self.cancellable {
|
||||
Some(ref cancellable) => Ok(cancellable.cancel()),
|
||||
Some(ref cancellable) => {
|
||||
cancellable.cancel();
|
||||
Ok(())
|
||||
}
|
||||
None => Err(Error::Cancel),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue