summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}
}