summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-21 19:58:55 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-21 19:58:55 +0100
commitab97d9da855060accb12c15073f507b26874eb90 (patch)
tree99993ee39af768e36caf63a544fa5e085e526c46 /src/lib
parentcb990adba9c57e5107ef2aa9716cf0a26c1df83d (diff)
Fix thinko in ExceptionStore; nothing happens after rethrow_exception..!
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 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);
}
}