mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
fix deadlock issue with config access
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user