Explorar o código

channel: use convenience function

draoi %!s(int64=2) %!d(string=hai) anos
pai
achega
deb784d68d
Modificáronse 1 ficheiros con 1 adicións e 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)
         }