channel: use convenience function

This commit is contained in:
draoi
2024-01-27 17:46:48 +01:00
parent ffee76843a
commit deb784d68d

View File

@@ -150,7 +150,7 @@ impl Channel {
pub async fn subscribe_stop(&self) -> Result<Subscription<Error>> {
debug!(target: "net::channel::subscribe_stop()", "START {:?}", self);
if self.stopped.load(SeqCst) {
if self.is_stopped() {
return Err(Error::ChannelStopped)
}