From baa866aa2cccdc4b0015e8c80be1178e4a8ea6c9 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 20 Jul 2015 12:04:58 +0200 Subject: ext.img_display: add sanity checks to quit(), fixes #347 --- ranger/ext/img_display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index d0a371f4..59887158 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -131,7 +131,8 @@ class W3MImageDisplayer(ImageDisplayer): filename = path) def quit(self): - if self.is_initialized: + if self.is_initialized and self.process \ + and self.process.poll() is not None: self.process.kill() class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware): -- cgit 1.4.1-2-gfad0