prevent traceback

This commit is contained in:
Yann Leboulanger 2011-08-29 15:08:04 +02:00
parent b0e1bbac56
commit 7bdacfaa04
1 changed files with 2 additions and 0 deletions

View File

@ -1636,6 +1636,8 @@ class Connection(CommonConnection, ConnectionHandlers):
self._stun_servers = self._hosts = [i for i in result_array]
def _request_privacy(self):
if not gajim.account_is_connected(self.name):
return
iq = common.xmpp.Iq('get', common.xmpp.NS_PRIVACY, xmlns = '')
id_ = self.connection.getAnID()
iq.setID(id_)