Refine type of Context.perform_inbox_jobs_needed to bool

This commit is contained in:
Dmitry Bogatov
2019-08-01 06:31:58 +00:00
parent 1f9807ccfe
commit 07d7316a9f
2 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ pub struct Context {
pub blobdir: Arc<RwLock<*mut libc::c_char>>,
pub sql: Sql,
pub inbox: Arc<RwLock<Imap>>,
pub perform_inbox_jobs_needed: Arc<RwLock<i32>>,
pub perform_inbox_jobs_needed: Arc<RwLock<bool>>,
pub probe_imap_network: Arc<RwLock<bool>>,
pub sentbox_thread: Arc<RwLock<dc_jobthread_t>>,
pub mvbox_thread: Arc<RwLock<dc_jobthread_t>>,
@@ -161,7 +161,7 @@ pub fn dc_context_new(
),
))),
probe_imap_network: Arc::new(RwLock::new(false)),
perform_inbox_jobs_needed: Arc::new(RwLock::new(0)),
perform_inbox_jobs_needed: Arc::new(RwLock::new(false)),
}
}