]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 566: if AT+FTH=3 fails, then don't continue to send MCF signal data.
authorLee Howard <faxguy@howardsilvan.com>
Tue, 1 Mar 2005 02:29:37 +0000 (02:29 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Tue, 1 Mar 2005 02:29:37 +0000 (02:29 +0000)
faxd/Class1Recv.c++

index a89c76a910ad1c6077b2354e67e85ea1176d8f3a..c1ff711d3990bdb1e92cd7b773be13573936854b 100644 (file)
@@ -744,7 +744,10 @@ Class1Modem::recvPage(TIFF* tif, u_int& ppm, fxStr& emsg, const fxStr& id)
                                 * window to buffer any delays in the post-page
                                 * processes.
                                 */
-                               if (!useV34) atCmd(thCmd, AT_CONNECT);
+                               if (!useV34 && !atCmd(thCmd, AT_CONNECT)) {
+                                   emsg = "Failure to raise V.21 transmission carrier.";
+                                   return (false);
+                               }
                            } else {
                                (void) transmitFrame((sendERR ? FCF_ERR : FCF_MCF)|FCF_RCVR);
                            }