diff --git a/QuantConnect.IBAutomater/IBAutomater.cs b/QuantConnect.IBAutomater/IBAutomater.cs index 990f50a..222517d 100644 --- a/QuantConnect.IBAutomater/IBAutomater.cs +++ b/QuantConnect.IBAutomater/IBAutomater.cs @@ -268,7 +268,14 @@ public StartResult Start(bool waitForExit) { if (File.Exists(_ibGatewayLogFileName)) { - File.Delete(_ibGatewayLogFileName); + try + { + File.Delete(_ibGatewayLogFileName); + } + catch (IOException ex) + { + + } } } diff --git a/QuantConnect.IBAutomater/QuantConnect.IBAutomater.csproj b/QuantConnect.IBAutomater/QuantConnect.IBAutomater.csproj index 29e85bc..f8660a4 100644 --- a/QuantConnect.IBAutomater/QuantConnect.IBAutomater.csproj +++ b/QuantConnect.IBAutomater/QuantConnect.IBAutomater.csproj @@ -22,7 +22,7 @@ - - + + \ No newline at end of file