mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
On uploads, throw exception only if there's an attached debugger.
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user