From ab97d9da855060accb12c15073f507b26874eb90 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Oct 2014 19:58:55 +0100 Subject: [PATCH] Fix thinko in ExceptionStore; nothing happens after rethrow_exception..! --- src/lib/exceptions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 52f257a8d..90a0abfc7 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -284,8 +284,9 @@ public: void rethrow () { boost::mutex::scoped_lock lm (_mutex); if (_exception) { - boost::rethrow_exception (_exception); + boost::exception_ptr tmp = _exception; _exception = boost::exception_ptr (); + boost::rethrow_exception (tmp); } } -- 2.30.2