small fixes

This commit is contained in:
dignifiedquire
2019-11-11 21:47:10 +01:00
parent cfba76d600
commit 9396a09505
2 changed files with 13 additions and 7 deletions

View File

@@ -211,7 +211,7 @@ fn start_threads(c: Arc<RwLock<Context>>) -> Option<Arc<Mutex<Imap>>> {
fn stop_threads(_context: &Context) {
if let Some(ref mut handle) = *HANDLE.clone().lock().unwrap() {
!("Stopping threads");
println!("Stopping threads");
IS_RUNNING.store(false, Ordering::Relaxed);
handle.handle_imap.take().unwrap().join().unwrap();