update comment

This commit is contained in:
yggverse 2024-12-01 12:39:25 +02:00
parent c693e5d88e
commit 40fa96d27f

View File

@ -31,7 +31,7 @@ impl Client {
// Init new Cancellable
let cancellable = Cancellable::new();
// Cancel previous client operations
// Replace by cancel previous operations
let previous = self.cancellable.replace(cancellable.clone());
if !previous.is_cancelled() {
previous.cancel();