mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
channel: use convenience function
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user