diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-01 19:34:47 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-01 19:34:47 +0000 |
commit | 65145d4e188d45bb9b8012fd865636137733ba9e (patch) | |
tree | be6d79b9595a03257969b82d92eb1e33c348f08b /res | |
parent | d12a014d5aa559d335c6210a1931a870a2586c2d (diff) |
Properly handle failures of fax->start_session()
FAX-177
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273464 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_fax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_fax.c b/res/res_fax.c index cae96603f..0aedd2dec 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -901,7 +901,7 @@ static int generic_fax_exec(struct ast_channel *chan, struct ast_fax_session_det /* handle frames for the session */ ms = 1000; - while ((ms > -1) && (timeout > 0)) { + while ((res > -1) && (ms > -1) && (timeout > 0)) { struct ast_channel *ready_chan; int ofd, exception; |