don't crash when dbus is not supported
This commit is contained in:
parent
14f1232308
commit
4f4e9a3723
|
@ -835,11 +835,12 @@ class ConnectionDisco:
|
||||||
if identity['category'] == 'pubsub' and identity['type'] == \
|
if identity['category'] == 'pubsub' and identity['type'] == \
|
||||||
'pep':
|
'pep':
|
||||||
self.pep_supported = True
|
self.pep_supported = True
|
||||||
listener = MusicTrackListener.get()
|
if dbus_support.supported:
|
||||||
track = listener.get_playing_track()
|
listener = MusicTrackListener.get()
|
||||||
if gajim.config.get('publish_tune'):
|
track = listener.get_playing_track()
|
||||||
gajim.interface.roster._music_track_changed(listener,
|
if gajim.config.get('publish_tune'):
|
||||||
track, self.name)
|
gajim.interface.roster._music_track_changed(listener,
|
||||||
|
track, self.name)
|
||||||
break
|
break
|
||||||
if features.__contains__(common.xmpp.NS_BYTESTREAM):
|
if features.__contains__(common.xmpp.NS_BYTESTREAM):
|
||||||
gajim.proxy65_manager.resolve(jid, self.connection, self.name)
|
gajim.proxy65_manager.resolve(jid, self.connection, self.name)
|
||||||
|
|
Loading…
Reference in New Issue