Skip to content
Snippets Groups Projects
Commit 736bb7c6 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix phone crash

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c0aac70a
No related branches found
No related tags found
No related merge requests found
...@@ -584,6 +584,8 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame) ...@@ -584,6 +584,8 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame)
expected=4; expected=4;
} else { } else {
res = phone_write_buf(p, pos, expected, maxfr); res = phone_write_buf(p, pos, expected, maxfr);
if (res > 0)
res = 0;
} }
if (res != expected) { if (res != expected) {
if (errno != EAGAIN) { if (errno != EAGAIN) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment