Fix thinko in ExceptionStore; nothing happens after rethrow_exception..! (backport...
authorCarl Hetherington <cth@carlh.net>
Tue, 21 Oct 2014 19:00:29 +0000 (20:00 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 21 Oct 2014 19:00:29 +0000 (20:00 +0100)
src/lib/exceptions.h

index 3423a5754e340e3909b6b59ef617b5785d1a2809..2820ce4a166dcf14c20c8924776049b220950611 100644 (file)
@@ -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);
                }
        }