]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
faxq: update unsent/job on timedout during a failed send
authorAidan Van Dyk <aidan@ifax.com>
Fri, 11 May 2007 15:29:01 +0000 (15:29 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Fri, 11 May 2007 15:29:01 +0000 (15:29 +0000)
Ported from Lee:
| commit f5cd8bf3b7e9adbf9d3918ea85a980e861e3f5d7
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date:   Thu Mar 8 18:57:58 2007 +0000
|
|   Davide Pagnin points out that xferfaxlog isn't getting updated properly for
|   UNSENT records when sending jobs time out and fail.
|
|   Also, we weren't updating the status in the req file, either.

faxd/faxQueueApp.c++

index f5e2508d52980dd23cc002a32cabbf82ce9e7d42..f49a6e0c7719fa126d8a72311831fe252692cdec 100644 (file)
@@ -1627,6 +1627,9 @@ faxQueueApp::sendJobDone(Job& job, FaxRequest* req)
         * be cleaned up.  Not sure if the user should be
         * notified of the requeue as well as the timeout?
         */
+       timeoutAccounting(job, *req);
+       req->notice = "Kill time expired";
+       updateRequest(*req, job);
        job.state = FaxRequest::state_failed;
        deleteRequest(job, req, Job::timedout, true);
        setDead(job);