From e8859c11a407ac167045fbb3b9a9296de688ca7a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Oct 2014 20:00:29 +0100 Subject: Fix thinko in ExceptionStore; nothing happens after rethrow_exception..! (backport from 2.0). --- src/lib/exceptions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 3423a5754..2820ce4a1 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -252,8 +252,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); } } -- cgit v1.2.3