From: Mark Spencer Date: Mon, 7 Apr 2003 19:14:24 +0000 (+0000) Subject: Phone updates X-Git-Tag: 0.4.0~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd6cc08ac84235768903e4e2c62ad3adc683f6aa;p=thirdparty%2Fasterisk.git Phone updates git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@769 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 9ca5a452ba..83660cdd0e 100755 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -584,11 +584,9 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame) expected=4; } else { res = phone_write_buf(p, pos, expected, maxfr); - if (res > 0) - res = 0; } if (res != expected) { - if (errno != EAGAIN) { + if ((errno != EAGAIN) && (errno != EINTR)) { if (res < 0) ast_log(LOG_WARNING, "Write returned error (%s)\n", strerror(errno)); /*