Feat: incompatible process
This commit is contained in:
committed by
Laurent Clouet
parent
b295467ca7
commit
83cd92b903
@@ -86,6 +86,7 @@ import java.util.regex.Pattern;
|
||||
private boolean askForRendererKill;
|
||||
private boolean userBlockJob;
|
||||
private boolean serverBlockJob;
|
||||
private boolean incompatibleProcessKillJob;
|
||||
private Gui gui;
|
||||
private Configuration configuration;
|
||||
private Log log;
|
||||
@@ -113,6 +114,7 @@ import java.util.regex.Pattern;
|
||||
askForRendererKill = false;
|
||||
userBlockJob = false;
|
||||
serverBlockJob = false;
|
||||
incompatibleProcessKillJob = false;
|
||||
log = log_;
|
||||
render = new RenderProcess(log_);
|
||||
blenderShortVersion = null;
|
||||
@@ -129,6 +131,15 @@ import java.util.regex.Pattern;
|
||||
}
|
||||
}
|
||||
|
||||
public void incompatibleProcessBlock() {
|
||||
setAskForRendererKill(true);
|
||||
setIncompatibleProcessKillJob(true);
|
||||
RenderProcess process = getProcessRender();
|
||||
if (process != null) {
|
||||
process.kill();
|
||||
}
|
||||
}
|
||||
|
||||
public RenderProcess getProcessRender() {
|
||||
return render;
|
||||
}
|
||||
@@ -596,6 +607,9 @@ import java.util.regex.Pattern;
|
||||
if (isUserBlockJob()) {
|
||||
return Error.Type.RENDERER_KILLED_BY_USER;
|
||||
}
|
||||
if (isIncompatibleProcessKillJob()) {
|
||||
return Error.Type.RENDERER_KILLED_BY_USER_INCOMPATIBLE_PROCESS;
|
||||
}
|
||||
return Error.Type.RENDERER_KILLED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user