Skip to content

Commit

Permalink
Disruptor: Correctly rethrow exception
Browse files Browse the repository at this point in the history
Don't rethrow the exception_ptr, but the contained exception.
  • Loading branch information
frankosterfeld committed Oct 18, 2024
1 parent b10bf28 commit cd06c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disruptor/include/disruptor/RingBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd06c6f

Please sign in to comment.