Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yell when there is an exception, not when there isn't
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 1 Mar 2019 17:51:01 +0000 (18:51 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 1 Mar 2019 17:51:01 +0000 (18:51 +0100)
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);
   }