core (xmpp): new networkEnabled() and networkDisabled() methods:

those methods can be called by platform specific plugins when network is known to be (un)available. This way, connection attempts can be cancelled when no network is available, saving resources (notably battery on mobile devices), or attempts can be restarted immediately when network is known to be available again.
This commit is contained in:
Goffi 2019-04-06 19:05:57 +02:00
commit c2c7dbddfe

View file

@ -418,7 +418,7 @@ class SAT(service.Service):
def connectProfile(__=None):
if self.isConnected(profile):
log.info(_("already connected !"))
log.info(_(u"already connected !"))
return True
if self.memory.isComponent(profile):