Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yell when there is an exception, not when there isn't
[simgrid.git] / src / simix / ActorImpl.cpp
index f456507..1b92ac6 100644 (file)
@@ -280,7 +280,8 @@ void ActorImpl::yield()
 
   if (suspended_) {
     XBT_DEBUG("Hey! I'm suspended.");
-    xbt_assert(exception_ != nullptr, "Gasp! This exception may be lost by subsequent calls.");
+
+    xbt_assert(exception_ == nullptr, "Gasp! This exception may be lost by subsequent calls.");
     suspended_ = false;
     suspend(this);
   }