Patent ID: 8749819

Claim:
An information processing apparatus comprising: a first reception unit configured to receive a notification indicating cancel of a print job from a printer; a call unit configured to call a job function for stopping transmission of the print job by a spooler; a second reception unit configured to receive a call of an end function indicating completion of transmission of the print job from the spooler if the job function is called; an acquisition unit configured to acquire status information from the printer; and a return unit configured to wait for a fixed period of time if the status information indicates completion of the print job, and to return the end function, wherein if the status information does not indicate completion of the print job, said return unit does not return the end function and said acquisition unit acquires the status information again from the printer, and wherein said fixed period of time is longer than a length of time that elapses from a start of a job-end processing of a port monitor to a completion of the job-end processing in response to receiving a job-end event of the print job from the printer.