Properly handle failures of fax->start_session()

FAX-177


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Nicholson
2010-07-01 19:34:47 +00:00
parent 243d87038e
commit 6acfd9f20a

View File

@@ -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;