summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-21 20:00:29 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-21 20:00:29 +0100
commite8859c11a407ac167045fbb3b9a9296de688ca7a (patch)
tree1df0a6a9f7094701088dc31726634aea8afa6b40 /src/lib
parent5c8599593ee8b3ef05d5c55c5f0885a2d8bfb9d2 (diff)
Fix thinko in ExceptionStore; nothing happens after rethrow_exception..! (backport from 2.0).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exceptions.h3
1 files changed, 2 insertions, 1 deletions
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);
}
}