Преглед изворни кода

channel: use convenience function

draoi пре 2 година
родитељ
комит
deb784d68d
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
         }