mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Use custom exception for replay creation failures
This commit is contained in:
@@ -170,9 +170,12 @@ namespace renderdocui.Windows.Dialogs
|
||||
SetRemoteServerLive(node, true);
|
||||
server.ShutdownConnection();
|
||||
}
|
||||
catch (ApplicationException)
|
||||
catch (ReplayCreateException ex)
|
||||
{
|
||||
SetRemoteServerLive(node, false);
|
||||
if(ex.Status == ReplayCreateStatus.NetworkRemoteBusy)
|
||||
SetRemoteServerLive(node, true);
|
||||
else
|
||||
SetRemoteServerLive(node, false);
|
||||
}
|
||||
|
||||
StaticExports.EnumerateRemoteTargets(hostname, (UInt32 i) => {
|
||||
@@ -204,7 +207,7 @@ namespace renderdocui.Windows.Dialogs
|
||||
|
||||
conn.Shutdown();
|
||||
}
|
||||
catch (ApplicationException)
|
||||
catch (ReplayCreateException)
|
||||
{
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user