fix #176 by transforming unsafe dc_log_info calls -- i think the unsafe

referencing via &jobthread.name was the culprit but not sure ;)
This commit is contained in:
holger krekel
2019-07-06 22:25:16 +02:00
parent f336166867
commit c2ca30cc16
2 changed files with 26 additions and 64 deletions

View File

@@ -167,18 +167,16 @@ pub fn dc_context_new(
cb_receive_imf,
),
))),
mvbox_thread: Arc::new(RwLock::new(unsafe {
dc_jobthread_init(
"MVBOX",
"configured_mvbox_folder",
Imap::new(
cb_get_config,
cb_set_config,
cb_precheck_imf,
cb_receive_imf,
),
)
})),
mvbox_thread: Arc::new(RwLock::new(dc_jobthread_init(
"MVBOX",
"configured_mvbox_folder",
Imap::new(
cb_get_config,
cb_set_config,
cb_precheck_imf,
cb_receive_imf,
),
))),
probe_imap_network: Arc::new(RwLock::new(0)),
perform_inbox_jobs_needed: Arc::new(RwLock::new(0)),
}