-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheduler: Set reasons in cupsdSetJobState only if we call finalize_j… #832
scheduler: Set reasons in cupsdSetJobState only if we call finalize_j… #832
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1.
I just noticed this myself!
I'll just make one change - we have to be sure that we have 'job' before calling the ippSetString, since we dereference it - I blindly negated the conditions which have to be fulfilled to get to finalize_job() and we shouldn't get here if job is NULL, but just to make sure that it is clear we have to have job there... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just use the same condition as we have for calling finalize_job(), so it matches the comment and intention (idk why I did the cond negation previously...) - I had to change it because I realize we should guard against job being NULL there, since we dereference the job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Before OpenPrinting#832 most successfully finished jobs had incorrect job state reasons - try to fix them during loading the jobs.
Before OpenPrinting#832 most successfully finished jobs had incorrect job state reasons - try to fix them during loading the jobs.
Before OpenPrinting#832 most successfully finished jobs had incorrect job state reasons - try to fix them during loading the jobs.
Before OpenPrinting#832 most successfully finished jobs had incorrect job state reasons - try to fix them during loading the jobs.
Before OpenPrinting#832 most successfully finished jobs had incorrect job state reasons - try to fix them during loading the jobs.
…ob later
Before the fix, every successfully printed jobs ended up with 'processing-to-stop-point' as the last reasons message.
Together with #830 fixes #828 .