X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d37e348a09783cda723c7019640ee69de168324..e49a11b5879fb7b97beb5a0f7ee0c5275a39cab9:/src/surf/network_interface.cpp diff --git a/src/surf/network_interface.cpp b/src/surf/network_interface.cpp index 6d2a96e063..9bdcd82cb2 100644 --- a/src/surf/network_interface.cpp +++ b/src/surf/network_interface.cpp @@ -126,7 +126,7 @@ s4u::Link::SharingPolicy LinkImpl::get_sharing_policy() void LinkImpl::turn_on() { - if (is_off()) { + if (not is_on()) { Resource::turn_on(); s4u::Link::on_state_change(this->piface_); }