Fixed plugin stop and auth

This commit is contained in:
2025-12-21 22:54:12 +01:00
parent 0833537e5e
commit 58f9321162
3 changed files with 9 additions and 6 deletions
+5 -4
View File
@@ -63,9 +63,10 @@ impl Plugin {
}
}
pub fn stop(&mut self) {
self.send(&LoaderMessage::Shutdown).unwrap();
self.stream.shutdown(std::net::Shutdown::Both).unwrap();
self.child.lock().unwrap().kill().unwrap();
pub fn stop(&mut self) -> crate::Result<()> {
self.send(&LoaderMessage::Shutdown)?;
self.stream.shutdown(std::net::Shutdown::Both)?;
self.child.lock().unwrap().kill()?;
Ok(())
}
}