mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] don't set exit code if already set
to avoid overriding manual exit code by processTerminated().
This commit is contained in:
@@ -580,7 +580,12 @@ public abstract class GitHandler {
|
||||
* @param exitCode a exit code for process
|
||||
*/
|
||||
protected synchronized void setExitCode(int exitCode) {
|
||||
myExitCode = exitCode;
|
||||
if (myExitCode == null) {
|
||||
myExitCode = exitCode;
|
||||
}
|
||||
else {
|
||||
LOG.info("Not setting exit code " + exitCode + ", because it was already set to " + myExitCode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user