[thorstenp] fix access to members before definition

This commit is contained in:
Yann Leboulanger 2008-12-03 19:56:37 +00:00
parent 60ba33eb31
commit 1865294a25
2 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,7 @@ except Exception:
class ConnectionBytestream:
def __init__(self):
self.files_props = {}
self.awaiting_xmpp_ping_id = None
def is_transfer_stopped(self, file_props):
if 'error' in file_props and file_props['error'] != 0:
@ -1387,6 +1388,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
self.version_ids = []
# ID of urn:xmpp:ping requests
self.awaiting_xmpp_ping_id = None
self.continue_connect_info = None
try:
idle.init()

View File

@ -432,6 +432,7 @@ class ServiceDiscoveryWindow(object):
self.browser = None
self.children = []
self.dying = False
self.node = None
# Check connection
if gajim.connections[account].connected < 2: