diff options
author | Mark Spencer <markster@digium.com> | 2003-04-07 19:14:24 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-04-07 19:14:24 +0000 |
commit | fd6cc08ac84235768903e4e2c62ad3adc683f6aa (patch) | |
tree | c0f297a4fce24a1079537d8085c4b32bdd978d2c /channels/chan_phone.c | |
parent | 736bb7c6dc41bb4a05a92affc8447f483ac847c9 (diff) |
Phone updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_phone.c')
-rwxr-xr-x | channels/chan_phone.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 9ca5a452b..83660cdd0 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)); /* |