]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 197] Class1 : +FTS=n must be used
authorDarren Nickerson <darren.nickerson@ifax.com>
Sun, 17 Feb 2002 23:39:23 +0000 (23:39 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Sun, 17 Feb 2002 23:39:23 +0000 (23:39 +0000)
Fixes requeuing error after "stop and wait failure"
Spotted by Giulio, patched by Lee. Thanks!

faxd/Class1Send.c++

index 6b95cd21fcf6b6c5ac1fd5a0190a2d752187ea2c..d990370d9f2db2a6368df7c83a90916592160b8b 100644 (file)
@@ -280,7 +280,7 @@ Class1Modem::sendPhaseB(TIFF* tif, Class2Params& next, FaxMachineInfo& info,
         */
        if (!atCmd(cmd == FCF_MPS ? conf.class1PPMWaitCmd : conf.class1EOPWaitCmd, AT_OK)) {
            emsg = "Stop and wait failure (modem on hook)";
-           return (send_failed);
+           return (send_retry);
        }
 
        do {
@@ -544,7 +544,7 @@ Class1Modem::sendTraining(Class2Params& params, int tries, fxStr& emsg)
             */
            if (!atCmd(conf.class1TCFWaitCmd, AT_OK)) {
                emsg = "Stop and wait failure (modem on hook)";
-               return (send_failed);
+               return (send_retry);
            }
 
            if (!sendTCF(params, TCF_DURATION)) {