mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
fix deadlock issue with config access
This commit is contained in:
@@ -467,9 +467,8 @@ impl Imap {
|
||||
true
|
||||
}
|
||||
Err((err, _)) => {
|
||||
let config = self.config.read().unwrap();
|
||||
let imap_user: &str = config.imap_user.as_ref();
|
||||
let message = context.stock_string_repl_str(StockMessage::CannotLogin, imap_user);
|
||||
let imap_user = self.config.read().unwrap().imap_user.to_owned();
|
||||
let message = context.stock_string_repl_str(StockMessage::CannotLogin, &imap_user);
|
||||
|
||||
emit_event!(
|
||||
context,
|
||||
|
||||
Reference in New Issue
Block a user