- if (surf_action_ == nullptr)
- return;
- XBT_VERB("This activity is suspended (remain: %f)", surf_action_->get_remains());
- surf_action_->suspend();
- s4u::Activity::on_suspended(*get_iface());
+ XBT_VERB("This activity is suspended (remain: %f)", model_action_->get_remains());
+ get_iface()->fire_on_suspend();
+ get_iface()->fire_on_this_suspend();
+ model_action_->suspend();