From c5d52560ec3e257191b0526df1cd89f92f735b25 Mon Sep 17 00:00:00 2001 From: Cedric RICARD Date: Mon, 9 Feb 2009 13:48:16 +0000 Subject: [PATCH] Removing error log when timeout is null. --- calexium_lib/mail/send_mail.anubis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calexium_lib/mail/send_mail.anubis b/calexium_lib/mail/send_mail.anubis index fa3d395..619e1b3 100644 --- a/calexium_lib/mail/send_mail.anubis +++ b/calexium_lib/mail/send_mail.anubis @@ -155,7 +155,7 @@ define Reply_Result if receive_command(conn, [], time_out) is { failure then logError(send_mail_log, "receive_reply: error receiving command"); error, - timeout then logError(send_mail_log, "receive_reply: timeout receiving command"); timeout, + timeout then (if time_out > 0 then logError(send_mail_log, "receive_reply: timeout receiving command") else unique); timeout, success(line) then //check if we must read another line by presence of hyphen after the reply code //220-bla bla bla @@ -355,7 +355,7 @@ public define SendContentResult RWStream target, Int so_far ) = - if receive_reply(weaken(target), [], smtp_time_out) is + if receive_reply(weaken(target), [], 0) is { error then copy_error(so_far), timeout then -- libgit2 0.21.4