diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-21 19:58:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-21 19:58:55 +0100 |
| commit | ab97d9da855060accb12c15073f507b26874eb90 (patch) | |
| tree | 99993ee39af768e36caf63a544fa5e085e526c46 /src/lib | |
| parent | cb990adba9c57e5107ef2aa9716cf0a26c1df83d (diff) | |
Fix thinko in ExceptionStore; nothing happens after rethrow_exception..!
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/exceptions.h | 3 |
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); } } |
