 							@trigger("hasParent", true)
 						else
 							@_chooseParent(superNodes)
-
 					)
 				)
 			else

			if duplicatePeer = @getPeer(peer.id)
				@removePeer(duplicatePeer)

			peer.on('disconnected', ( peer ) =>
				@removePeer(peer)
			)

			@_peers.push(peer)
			@trigger('peer.added', peer)

					_superNodes = superNodes.slice(0)
					@_chooseParent(superNodes)

					# Become a Supernode and become a Sibling
					@on("hasParent", (hasParent) =>
						for superNode in _superNodes
							unless hasParent
								@setSuperNode(true)			
								peer = @getPeer(superNode.id)
								@addSibling(peer)
					)	

			)


		_onAddSibling: (id) =>
			peer = @getPeer(id)
			if peer
				@addSibling(peer)

		# Is called until a node connects to a Supernode
		#
		# @param superNodes [[Node]] an array of available superNodes
