summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-11-27 12:28:53 +0000
committersr55 <[email protected]>2016-11-27 12:42:26 +0000
commit75ed9b9b7e89d9ca795e3187a8d23ef70ae3d353 (patch)
treee9956ffc7eb03fb3c3212d0afbdce7856347a3a6 /win/CS/HandBrake.ApplicationServices
parent056b10fd1c2f12bfa9fa4afd2e7bb12b74bdd35e (diff)
WinGui: Fix a possible CollecitonModified Exception in the log service.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs b/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs
index d440f53f6..95a1ec515 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs
@@ -16,6 +16,7 @@ namespace HandBrake.ApplicationServices.Services.Logging
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
+ using System.Linq;
using System.Text;
using HandBrake.ApplicationServices.Services.Logging.EventArgs;
@@ -64,7 +65,7 @@ namespace HandBrake.ApplicationServices.Services.Logging
{
lock (this.lockObject)
{
- return this.logMessages;
+ return this.logMessages.ToList();
}
}
}