From 46d44006444189ba682b8b53a203cbc00b2513a1 Mon Sep 17 00:00:00 2001 From: Frank Osterfeld Date: Fri, 18 Oct 2024 13:14:33 +0200 Subject: [PATCH] Disruptor: Correctly rethrow exception Don't rethrow the exception_ptr, but the contained exception. Signed-off-by: Frank Osterfeld --- src/disruptor/include/disruptor/RingBuffer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disruptor/include/disruptor/RingBuffer.hpp b/src/disruptor/include/disruptor/RingBuffer.hpp index 27b2d1c9..f9dacb6b 100644 --- a/src/disruptor/include/disruptor/RingBuffer.hpp +++ b/src/disruptor/include/disruptor/RingBuffer.hpp @@ -214,7 +214,7 @@ class EventPoller { } while (processNextEvent && nextSequence <= availableSequence); } catch (...) { _sequence->setValue(processedSequence); - throw std::current_exception(); + std::rethrow_exception(std::current_exception()); } _sequence->setValue(processedSequence);