|
|
@@ -363,6 +363,8 @@ impl Channel {
|
|
|
target: "net::channel::main_receive_loop()",
|
|
|
"Stopping channel {:?}", self
|
|
|
);
|
|
|
+
|
|
|
+ self.stop().await;
|
|
|
return Err(Error::ChannelStopped)
|
|
|
}
|
|
|
};
|
|
|
@@ -383,6 +385,7 @@ impl Channel {
|
|
|
self.ban(self.address()).await;
|
|
|
}
|
|
|
|
|
|
+ self.stop().await;
|
|
|
return Err(Error::ChannelStopped)
|
|
|
}
|
|
|
Err(_) => unreachable!("You added a new error in notify()"),
|