Skip to content

Commit 06d2d3c

Browse files
committed
Flush maintenance command file before printing (LP #1500636)
1 parent d8ee56f commit 06d2d3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

printerproperties.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,7 @@ def maintenance_command (self, command):
12311231

12321232
with tempfile.NamedTemporaryFile(mode='wt') as tmpfile:
12331233
tmpfile.write ("#CUPS-COMMAND\n%s\n" % command)
1234+
tmpfile.flush()
12341235
self.cups._begin_operation (_("sending maintenance command"))
12351236
try:
12361237
format = "application/vnd.cups-command"

0 commit comments

Comments
 (0)