Skip to content

Commit

Permalink
close http connection after printing
Browse files Browse the repository at this point in the history
  • Loading branch information
darius-janusauskas committed Jul 17, 2018
1 parent 86c36de commit cfd3bc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/cups.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ static VALUE cups_print(VALUE self)
job_id = cupsPrintFile2(http, target, fname, title, num_options, options); // Do it. "rCups" should be the filename/path
//
// cupsFreeOptions(num_options, options);
httpClose(http);

rb_iv_set(self, "@job_id", INT2NUM(job_id));
return Qtrue;
Expand Down

0 comments on commit cfd3bc6

Please sign in to comment.