note stats on quitting the updater thread

This commit is contained in:
bunnie 2022-07-11 16:27:13 +08:00
parent 3e8065ee56
commit f756c4ee66

View file

@ -325,6 +325,7 @@ fn wrapped_main() -> ! {
} }
#[cfg(not(feature="dbg-ecupdate"))] #[cfg(not(feature="dbg-ecupdate"))]
{ // if we're not debugging, quit the updater thread -- might as well free up the memory and connections if nobody will ever use it again. { // if we're not debugging, quit the updater thread -- might as well free up the memory and connections if nobody will ever use it again.
// this frees up 40k runtime RAM + 1 connection in the status thread.
send_message(ecup_conn, send_message(ecup_conn,
Message::new_blocking_scalar(ecup::UpdateOp::Quit.to_usize().unwrap(), 0, 0, 0, 0) Message::new_blocking_scalar(ecup::UpdateOp::Quit.to_usize().unwrap(), 0, 0, 0, 0)
).expect("couldn't quit updater thread"); ).expect("couldn't quit updater thread");