On uploads, throw exception only if there's an attached debugger.

This commit is contained in:
2018-12-20 00:16:54 +00:00
parent 692b67c1c4
commit 478a334892
3 changed files with 35 additions and 42 deletions

View File

@@ -31,6 +31,7 @@
// ****************************************************************************/
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading;
@@ -94,7 +95,7 @@ namespace DiscImageChef.Core
catch
{
#if DEBUG
throw;
if(Debugger.IsAttached) throw;
#endif
}
});
@@ -155,7 +156,7 @@ namespace DiscImageChef.Core
catch
{
#if DEBUG
throw;
if(Debugger.IsAttached) throw;
#endif
}
});