make secure_join flow more readable by using and adding a few macros, tiny api changes

This commit is contained in:
holger krekel
2019-09-05 03:27:55 +02:00
parent 4bbab876ae
commit 9f09c73ec1
4 changed files with 150 additions and 229 deletions

View File

@@ -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
******************************************************************************/