]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 364] polling doesn't work in Class 1
authorDarren Nickerson <darren.nickerson@ifax.com>
Tue, 8 Oct 2002 14:59:16 +0000 (14:59 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Tue, 8 Oct 2002 14:59:16 +0000 (14:59 +0000)
And now it does - thanks Lee!

faxd/Class1Send.c++

index cb7b45383280988ecfe143160daa89ef18cd0491..0341562d9d7f84d69c6c4b6ef731a59974726e42 100644 (file)
@@ -129,14 +129,14 @@ Class1Modem::getPrologue(Class2Params& params, bool& hasDoc, fxStr& emsg)
            if (frame.isOK()) {
                switch (frame.getRawFCF()) {
                case FCF_DIS:
+                   hasDoc = (dis & DIS_T4XMTR) != 0;// documents to poll?
                    if ((dis&DIS_T4RCVR) == 0) {
                        emsg = "Remote has no T.4 receiver capability";
                        protoTrace(emsg);
-                       return (send_failed);
-                   } else {
-                       hasDoc = (dis & DIS_T4XMTR) != 0;// documents to poll?
-                       return (send_ok);
+                       if (! hasDoc)   // don't die if we can poll
+                           return (send_failed);
                    }
+                   return (send_ok);
                case FCF_DTC:                           // NB: don't handle DTC
                    emsg = "DTC received when expecting DIS (not supported)";
                    break;