Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename some fields (change toto to toto_)
[simgrid.git] / src / s4u / s4u_Comm.cpp
index cbcdf33..e9c1692 100644 (file)
@@ -15,10 +15,10 @@ namespace simgrid {
 namespace s4u {
 Comm::~Comm()
 {
-  if (state_ == State::started && not detached_ && (pimpl_ == nullptr || pimpl_->state == SIMIX_RUNNING)) {
+  if (state_ == State::started && not detached_ && (pimpl_ == nullptr || pimpl_->state_ == SIMIX_RUNNING)) {
     XBT_INFO("Comm %p freed before its completion. Detached: %d, State: %d", this, detached_, (int)state_);
     if (pimpl_ != nullptr)
-      XBT_INFO("pimpl_->state: %d", pimpl_->state);
+      XBT_INFO("pimpl_->state: %d", pimpl_->state_);
     else
       XBT_INFO("pimpl_ is null");
     xbt_backtrace_display_current();