Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[kernel] FutureState.exception_ = nullptr
[simgrid.git] / include / simgrid / kernel / future.hpp
index 9a57f8b..034963d 100644 (file)
@@ -121,6 +121,7 @@ protected:
     status_ = FutureStatus::done;
     if (exception_) {
       std::exception_ptr exception = std::move(exception_);
+      exception_ = nullptr;
       std::rethrow_exception(std::move(exception));
     }
   }