From 1865294a25ef029999d1506bca59a1711422fe80 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 3 Dec 2008 19:56:37 +0000
Subject: [PATCH] [thorstenp] fix access to members before definition

---
 src/common/connection_handlers.py | 2 ++
 src/disco.py                      | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index b066cefd15..5c97ba87a5 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -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()
diff --git a/src/disco.py b/src/disco.py
index 944c0fc0ec..75361caa5f 100644
--- a/src/disco.py
+++ b/src/disco.py
@@ -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:
-- 
GitLab