changeset 1869:9d9d61d53684

jp (base): fixed Jp.quit when exit code is 0
author Goffi <goffi@goffi.org>
date Wed, 02 Mar 2016 19:45:02 +0100
parents 28b29381db75
children c25077c87b1d
files frontends/src/jp/base.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/base.py	Wed Mar 02 19:18:14 2016 +0100
+++ b/frontends/src/jp/base.py	Wed Mar 02 19:45:02 2016 +0100
@@ -278,8 +278,7 @@
                 callback(*args, **kwargs)
 
         self.stop_loop()
-        if errcode:
-            sys.exit(errcode)
+        sys.exit(errcode)
 
     def check_jids(self, jids):
         """Check jids validity, transform roster name to corresponding jids