Feat: handle disable of session on denoising
This commit is contained in:
committed by
harlekin
parent
36b506aa6f
commit
b061955eb9
@@ -57,6 +57,7 @@ import com.sheepit.client.exception.FermeExceptionNoWritePermission;
|
||||
import com.sheepit.client.exception.FermeExceptionServerInMaintenance;
|
||||
import com.sheepit.client.exception.FermeExceptionServerOverloaded;
|
||||
import com.sheepit.client.exception.FermeExceptionSessionDisabled;
|
||||
import com.sheepit.client.exception.FermeExceptionSessionDisabledDenoisingNotSupported;
|
||||
import com.sheepit.client.exception.FermeServerDown;
|
||||
import com.sheepit.client.hardware.cpu.CPU;
|
||||
import com.sheepit.client.os.OS;
|
||||
@@ -232,6 +233,17 @@ import okhttp3.HttpUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (FermeExceptionSessionDisabledDenoisingNotSupported e) {
|
||||
this.gui.error(Error.humanString(Error.Type.DENOISING_NOT_SUPPORTED));
|
||||
// should wait forever to actually display the message to the user
|
||||
while (shuttingdown == false) {
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
catch (InterruptedException e1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (FermeExceptionNoRendererAvailable e) {
|
||||
this.gui.error(Error.humanString(Error.Type.RENDERER_NOT_AVAILABLE));
|
||||
// should wait forever to actually display the message to the user
|
||||
|
||||
Reference in New Issue
Block a user