From 24419f3f161dd937649f645f6259fb7f3d2f1e06 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Fri, 04 May 2018 13:01:37 +0000
Subject: [PATCH] Fix of error code reporting.

---
 tsclient.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tsclient.py b/tsclient.py
index 1d46578..a736951 100755
--- a/tsclient.py
+++ b/tsclient.py
@@ -170,7 +170,7 @@
 				sleep(1)
 				if(p.poll() is not None): # trisurf exited!
 					print("Trisurf was stopped with return code {}".format(p.returncode))
-					if(p.returncode!=0):
+					if(p.returncode>0):
 						try:
 							send_error_report(CONNECT_ADDR, cid, rid, p.returncode)
 						except:

--
Gitblit v1.9.3