Explorar el Código

channel: use convenience function

draoi hace 2 años
padre
commit
deb784d68d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/net/channel.rs

+ 1 - 1
src/net/channel.rs

@@ -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)
         }