Exit code 112 should be ignored same as 102

This commit is contained in:
Alan Hamlett 2022-11-10 10:45:54 -06:00
parent 54e6772a80
commit 0744d7209b
1 changed files with 2 additions and 2 deletions

View File

@ -571,12 +571,12 @@ class SendHeartbeatsThread(threading.Thread):
process = Popen(cmd, stdin=stdin, stdout=PIPE, stderr=STDOUT) process = Popen(cmd, stdin=stdin, stdout=PIPE, stderr=STDOUT)
output, _err = process.communicate(input=inp) output, _err = process.communicate(input=inp)
retcode = process.poll() retcode = process.poll()
if (not retcode or retcode == 102) and not output: if (not retcode or retcode == 102 or retcode == 112) and not output:
self.sent() self.sent()
else: else:
update_status_bar('Error') update_status_bar('Error')
if retcode: if retcode:
log(DEBUG if retcode == 102 else ERROR, 'wakatime-core exited with status: {0}'.format(retcode)) log(DEBUG if retcode == 102 or retcode == 112 else ERROR, 'wakatime-core exited with status: {0}'.format(retcode))
if output: if output:
log(ERROR, u('wakatime-core output: {0}').format(output)) log(ERROR, u('wakatime-core output: {0}').format(output))
except: except: