mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 07:26:29 +03:00
make secure_join flow more readable by using and adding a few macros, tiny api changes
This commit is contained in:
@@ -582,7 +582,7 @@ pub unsafe fn dc_job_do_DC_JOB_CONFIGURE_IMAP(context: &Context, _job: &Job) {
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Ongoing process allocation/free/check
|
||||
* Ongoing process allocation/free/check
|
||||
******************************************************************************/
|
||||
|
||||
pub fn dc_alloc_ongoing(context: &Context) -> bool {
|
||||
@@ -612,7 +612,6 @@ pub fn dc_free_ongoing(context: &Context) {
|
||||
s.shall_stop_ongoing = true;
|
||||
}
|
||||
|
||||
|
||||
fn dc_has_ongoing(context: &Context) -> bool {
|
||||
let s_a = context.running_state.clone();
|
||||
let s = s_a.read().unwrap();
|
||||
@@ -620,7 +619,6 @@ fn dc_has_ongoing(context: &Context) -> bool {
|
||||
s.ongoing_running || !s.shall_stop_ongoing
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Connect to configured account
|
||||
******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user