fix deadlock issue with config access

This commit is contained in:
holger krekel
2019-10-29 15:00:34 +01:00
parent 27627b4f74
commit de3e5e1c39

View File

@@ -467,9 +467,8 @@ impl Imap {
true true
} }
Err((err, _)) => { Err((err, _)) => {
let config = self.config.read().unwrap(); let imap_user = self.config.read().unwrap().imap_user.to_owned();
let imap_user: &str = config.imap_user.as_ref(); let message = context.stock_string_repl_str(StockMessage::CannotLogin, &imap_user);
let message = context.stock_string_repl_str(StockMessage::CannotLogin, imap_user);
emit_event!( emit_event!(
context, context,