X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/41ace32b5ffcd51fe79324b5353e5f1a6029d41e..4485d715fa3a090c1dd38def83ab8239feebecb3:/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_); }