You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/09/13 22:01:48 UTC
[2/2] lucenenet git commit: Lucene.Net.Util.IOUtils: Added support
for .NET Standard 2.0 to process any ThreadInterruptExceptions the same way
as .NET Framework
Lucene.Net.Util.IOUtils: Added support for .NET Standard 2.0 to process any ThreadInterruptExceptions the same way as .NET Framework
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/8eada798
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/8eada798
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/8eada798
Branch: refs/heads/master
Commit: 8eada7984fbb9b47aceb11e18b4e188bf50c4f36
Parents: 681430e
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Sep 14 04:29:17 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Thu Sep 14 04:29:17 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net/Util/IOUtils.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8eada798/src/Lucene.Net/Util/IOUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Util/IOUtils.cs b/src/Lucene.Net/Util/IOUtils.cs
index 5907b60..9243104 100644
--- a/src/Lucene.Net/Util/IOUtils.cs
+++ b/src/Lucene.Net/Util/IOUtils.cs
@@ -565,18 +565,18 @@ namespace Lucene.Net.Util
{
throw;
}
-#if !NETSTANDARD
+#if !NETSTANDARD1_5
try
{
#endif
// Pause 5 msec
Thread.Sleep(5);
-#if !NETSTANDARD
+#if !NETSTANDARD1_5
}
catch (ThreadInterruptedException ie)
{
var ex = new ThreadInterruptedException(ie.ToString(), ie);
- //ex.AddSuppressed(exc);
+ ex.AddSuppressed(e);
throw ex;
}
#endif