quick frontend (quick app): fixed use of profile_manager.connected

This commit is contained in:
Goffi 2016-12-20 21:07:22 +01:00
commit 9fff6e1343

View file

@ -908,7 +908,7 @@ class QuickApp(object):
"""Must be called when the frontend is terminating"""
to_unplug = []
for profile, profile_manager in self.profiles.iteritems():
if profile_manager.connected(profile) and profile_manager.autodisconnect:
if profile_manager.connected and profile_manager.autodisconnect:
#The user wants autodisconnection
self.disconnect(profile)
to_unplug.append(profile)