From: Carl Hetherington Date: Tue, 21 Oct 2014 18:58:55 +0000 (+0100) Subject: Fix thinko in ExceptionStore; nothing happens after rethrow_exception..! X-Git-Tag: v2.0.48~550 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ab97d9da855060accb12c15073f507b26874eb90 Fix thinko in ExceptionStore; nothing happens after rethrow_exception..! --- 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); } }