From 5dc84c4fd79e9618e0fd523a4414709ef046dcab Mon Sep 17 00:00:00 2001 From: jglauche Date: Mon, 19 Dec 2011 18:39:10 +0100 Subject: [PATCH] make sure to disconnect and exit when printing is done. --- printcore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/printcore.py b/printcore.py index 303d63e..124d92b 100755 --- a/printcore.py +++ b/printcore.py @@ -310,5 +310,7 @@ if __name__ == '__main__': if statusreport: sys.stdout.write("\b\b\b\b%02.1f%%" % (100*float(p.queueindex)/len(p.mainqueue),) ) sys.stdout.flush() + p.disconnect() + sys.exit(0) except: p.disconnect()