diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index b066cefd150e37f787a6a46b1371b966c6c4a219..5c97ba87a54a8f8ed4e6f16591fe183e90332f40 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 944c0fc0ec95fc6b0311f8843313200e4bbe323e..75361caa5f8150511ce89bb738bafd99a4de7c7c 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: