From 1c11863f21f1872a43ba46d7eabb2da8b9a97135 Mon Sep 17 00:00:00 2001 From: jyapayne Date: Sat, 15 Dec 2012 22:31:03 -0700 Subject: [PATCH] Screen properly restores on program not existing. --- pwatch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwatch.py b/pwatch.py index f6c1189..ddd14b2 100755 --- a/pwatch.py +++ b/pwatch.py @@ -89,6 +89,8 @@ class UnixWatchCommand: retcode = process.poll() if retcode: + self.stop.set() + self.restoreScreen() raise subprocess.CalledProcessError(retcode, command, output=output[0]) return output.splitlines()