diff --git a/src/lib.rs b/src/lib.rs index 1ec7645..9e51454 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -156,19 +156,19 @@ impl MinecraftConnection { /// Set alive state #[cfg(not(feature = "atomic_clone"))] - pub fn set_alive(&mut self, state: bool) { + fn set_alive(&mut self, state: bool) { self.is_alive = state; } /// Set alive state #[cfg(feature = "atomic_clone")] - pub fn set_alive(&self, state: bool) { + fn set_alive(&self, state: bool) { self.is_alive.store(state, Ordering::Relaxed); } /// Is connection alive #[cfg(not(feature = "atomic_clone"))] - pub fn set_alive(&self) -> bool { + pub fn is_alive(&self) -> bool { self.is_alive }