diff --git a/bitcoin/src/p2p/mod.rs b/bitcoin/src/p2p/mod.rs index a7bedce1f..8b7f737e1 100644 --- a/bitcoin/src/p2p/mod.rs +++ b/bitcoin/src/p2p/mod.rs @@ -110,7 +110,7 @@ impl ServiceFlags { /// /// Returns itself. pub fn remove(&mut self, other: ServiceFlags) -> ServiceFlags { - self.0 ^= other.0; + self.0 &= !other.0; *self }