diff --git a/src/server/service.rs b/src/server/service.rs index 35cfdbd77..576c93262 100644 --- a/src/server/service.rs +++ b/src/server/service.rs @@ -89,7 +89,12 @@ impl> Service for ServiceTmpl { fn join(&self) { self.0.write().unwrap().active = false; - self.0.write().unwrap().handle.take().map(JoinHandle::join); + let handle = self.0.write().unwrap().handle.take(); + if let Some(handle) = handle { + if let Err(e) = handle.join() { + log::error!("Failed to join thread for service {}, {:?}", self.name(), e); + } + } } }