diff --git a/rd-net/Lifetimes/Threading/ByteBufferAsyncProcessor.cs b/rd-net/Lifetimes/Threading/ByteBufferAsyncProcessor.cs index 312c4c524..0821646ed 100644 --- a/rd-net/Lifetimes/Threading/ByteBufferAsyncProcessor.cs +++ b/rd-net/Lifetimes/Threading/ByteBufferAsyncProcessor.cs @@ -463,6 +463,9 @@ [PublicAPI] public void Put(UnsafeWriter.Cookie data) } +#if !NET35 + [System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions] // to force myLock to be unlocked even in case of corrupted state exception +#endif [PublicAPI] public void Put(byte* start, int count) { if (count <= 0) return;