make smtp/imap connect() return bool instead of c-int

This commit is contained in:
holger krekel
2019-07-17 10:25:25 +02:00
parent 8737c1d142
commit ad4be80b4e
4 changed files with 34 additions and 34 deletions

View File

@@ -317,7 +317,7 @@ unsafe fn dc_job_do_DC_JOB_SEND(context: &Context, job: &mut dc_job_t) {
);
let connected = context.smtp.lock().unwrap().connect(context, loginparam);
dc_loginparam_unref(loginparam);
if 0 == connected {
if !connected {
dc_job_try_again_later(job, 3i32, 0 as *const libc::c_char);
current_block = 14216916617354591294;
} else {